feldmaneyal Posted January 17, 2004 Share Posted January 17, 2004 I have a web page that i need to fill username and password and the press a button Any idea? Eyak Link to comment Share on other sites More sharing options...
scriptkitty Posted January 17, 2004 Share Posted January 17, 2004 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. Link to comment Share on other sites More sharing options...
jpm Posted January 17, 2004 Share Posted January 17, 2004 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 Link to comment Share on other sites More sharing options...
scriptkitty Posted January 17, 2004 Share Posted January 17, 2004 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now