Jump to content

Recommended Posts

Posted

I do this a lot, it is actually quite easy.

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.

if you tab on to a button, you can send the spacebar key to push it.

Hope this helps

AutoIt3, the MACGYVER Pocket Knife for computers.

Posted

You could have use the WinWaitNotActive at the end instead of changing the name by WinSetTitle.

For me it is a cleaner opening/closing action :whistle:

Posted

That is true, but the problem is that many web pages are the same name after they change. If you change the name, it will be a new name on refresh.

AutoIt3, the MACGYVER Pocket Knife for computers.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...