Share this post

Link to post

Share on other sites

scriptkitty 1

First, most HTML pages have a sign in for the title, or similar funtion.

See what you can take on this.

$page="http://login.passport.net/uilogin.srf?id=2"
Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE "& $page)
WinWaitActive("Please sign in")
; you can use a quick find on the page if your page doesn't automatically
; have the username in focus
;send("^f")
;WinWaitActive("Find")
;send("Sign me in automatically{enter}")
;sleep(1000)
;send("{esc}{tab 3}")
WinSetTitle ("Please sign in","","Waiting for next step")
; I rename the window so I know when the next one comes in.
send("MyUsername@hotmail.com{tab}Mypassword{enter}")

This uses simple keyboard navigation, you can also use pixelcolor and other things.