logikal16 Posted June 13, 2005 Share Posted June 13, 2005 For some reason this code isn't working... AutoIT claims that the requested action with this object has failed. It has something to do with $IE.document.cplogin.user.value = $user but from viewing the source at that $url, everything looks good. Anybody know what's wrong? Func goMIX ($user, $pass) $url = "http://bert.wvu.edu/cp/home/loginf" $IE = ObjCreate ("InternetExplorer.Application") $IE.Visible = 1 $IE.Navigate ($url) While $IE.busy Sleep (50) Wend $IE.document.cplogin.user.value = $user $IE.document.cplogin.pass.value = $pass $IE.document.cplogin.submit () EndFunc Link to comment Share on other sites More sharing options...
logikal16 Posted June 13, 2005 Author Share Posted June 13, 2005 anybody? Link to comment Share on other sites More sharing options...
JSThePatriot Posted June 13, 2005 Share Posted June 13, 2005 (edited) Okay. I havent messed with much COM yet, but first off the website you are dealing with has frames. I dont see where you are navigating through the frames to get to the proper page. One way to get around that would be to enter a more direct URL. I will see if I can pull one out for you. EDIT: Try the following... Func goMIX ($user, $pass) $url = "https://bert.wvu.edu/cp/home/displaylogin" $IE = ObjCreate ("InternetExplorer.Application") $IE.Visible = 1 $IE.Navigate ($url) While $IE.busy Sleep (50) Wend $IE.document.cplogin.user.value = $user $IE.document.cplogin.pass.value = $pass $IE.document.cplogin.submit () EndFunc I changed the $url to be of the page that will actually let you log in. The other page just had frames that included the page you really wanted to get to. JS Edited June 13, 2005 by JSThePatriot AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) Link to comment Share on other sites More sharing options...
logikal16 Posted June 13, 2005 Author Share Posted June 13, 2005 cool, that worked! thanks ;-) Link to comment Share on other sites More sharing options...
JSThePatriot Posted June 13, 2005 Share Posted June 13, 2005 Not a problem. I am glad to have been of assistance. JS AutoIt Links File-String Hash Plugin Updated! 04-02-2008 Plugins have been discontinued. I just found out. ComputerGetInfo UDF's Updated! 11-23-2006 External Links Vortex Revolutions Engineer / Inventor (Web, Desktop, and Mobile Applications, Hardware Gizmos, Consulting, and more) 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