10-29-2006, 11:43 AM
Your code is good. Maybe 2.5 is too short time. Here is my version:
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.
