Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help with timing
#6
Your code is good. Maybe 2.5 is too short time. Here is my version:

Code:
Copy      Help
int hwnd
web "http://xxxxxxxx" 1|8 "" "" 0 hwnd
AutoPassword "username" "password" 0x1 hwnd 5
;find an element in the web page; wait max 30 s for the page/element
Htm el=htm("x" "x" "x" hwnd "" x x 30) ;;to insert this command, use dialog "Find html element"
el.Click
10
clo hwnd

;wait 0.5 removed because: 1. Flag 1 used in web. 2. A wait time used in AutoPassword.
;key TY removed because flag 1 can be used in AutoPassword.
;wait 2.5 removed because htm waits if you specify a wait time.
;lef 506 422 0 1 removed because el.Click can precisely click without the mouse.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)