Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Macro doesn't work on other computers
#4
Try to add flag 1 in web.

For example, this macro often fails:
Macro Macro2467
Code:
Copy      Help
web "http://www.quickmacros.com" 12
int w=wait(3 WV win("Internet Explorer" "IEFrame"))
act w
Acc a.Find(w "TEXT" "" "a:name=q" 0x3004 3)
a.SetValue("A")
1
a.Select(1)
key "B"
But does not fail with flag 1:
Macro Macro2467
Code:
Copy      Help
web "http://www.quickmacros.com" 12|1
int w=wait(3 WV win("Internet Explorer" "IEFrame"))
act w
Acc a.Find(w "TEXT" "" "a:name=q" 0x3004 3)
a.SetValue("A")
1
a.Select(1)
key "B"
Reason - the new page in new tab is not fully loaded, and a.Find finds the text box object in old page/tab, which now is in background. With flag 1 web waits until fully loaded.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)