Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Macro doesn't work on other computers
#3
Hello Kevin,

Here is some of the code I am using. The code will open internet explorer but it won't actually follow the "SetValue" instruction and it throws a run time error and macro fails. I try to stay away from mouse click if possible as you said before when people have different screen resolutions they can use the same macro then.

Code:
Copy      Help
function ARRAY(str)&a [str&s]

web "http://newmanlongtermcare.com/new_agent/toolkit/newman.html" 12 "iexplore - Shortcut"
int w1=wait(6 WV win("https://ltcselect.com/admin.asp - Windows Internet Explorer" "IEFrame"))

wait 5

str date c1 c2

//////////////////////////////////////////////////////////////////////AGENT INFO ENTERED//////////////
/Enter Agent Name
int w=wait(3 WV win("https://ltcselect.com/admin.asp - Windows Internet Explorer" "IEFrame"))
Acc a1.Find(w "TEXT" "" "a:name=User_ContactName" 0x3004 3)
a1.SetValue(F"{a[1]} {a[2]}")

/Click Next
Acc a2.Find(w "PUSHBUTTON" "Next" "" 0x3001 3)
a2.DoDefaultAction

Let me know if you have an genius thoughts on when this isn't working.

Thanks,

Paul Daugs


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)