WhiteBoyCat Posted June 3, 2011 Share Posted June 3, 2011 (edited) I am facing a problem with Frames. When I create the IE object I cannot get any objects inside the program. This page uses frames, but your browser doesn't support them. I am using IE8.. I dont understand the problem. What I am trying to do is automate logging in to this website https://www.acgme.org/residentdatacollection/. Is there anyway I can use Autoit for this? <snip> And I get the following Console feed back: <snip> Edited June 26, 2012 by Melba23 Code removed Link to comment Share on other sites More sharing options...
MrMitchell Posted June 3, 2011 Share Posted June 3, 2011 (edited) There are two frames and the form is in the second frame so use $o_frame = _IEFrameGetCollection($oIE, 1) to get the second frame (index 1 is the second frame, index 0 would be the first). Then get the form from the frame by using: $o_form = _IEFormGetObjByName($o_frame, "loginentry") So that section of your code would look like: <snip> USERID and PASSW are hidden fields so you won't see them filled in. If the form doesn't submit properly, use the visible field names: <snip> Or hell... fill them both! I don't have valid user name and pw to test with and I can't explain why "posterior" and "fossa" exist, but I bet the DaleHolm would know Edited June 26, 2012 by Melba23 Code removed Link to comment Share on other sites More sharing options...
WhiteBoyCat Posted June 3, 2011 Author Share Posted June 3, 2011 Thanks That worked great in finding the form. Now I have a username and password and submit it. But The page redirects to an error page when I call submit. I will try to see if I can navigate to the other page I want and see if the login is successful. Link to comment Share on other sites More sharing options...
MrMitchell Posted June 3, 2011 Share Posted June 3, 2011 (edited) Try this with a valid user name and password: Here we are filling the visible AND hidden user name and password fields then simulating a click on the login button. Not sure if it will work, but worth a shot... <snip> Edited June 26, 2012 by Melba23 Code removed Link to comment Share on other sites More sharing options...
WhiteBoyCat Posted June 6, 2011 Author Share Posted June 6, 2011 The first Solution worked Great. Thank you for the second. that actually will work but It is not needed. It was a real problem of not knowing about frames. Link to comment Share on other sites More sharing options...
tax Posted June 26, 2012 Share Posted June 26, 2012 Hey guys great code butcan you create me one so,I can auto-log into my twitter account?because the code you have does't workI'd really appreciate ithttps://twitter.com/ Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 26, 2012 Moderators Share Posted June 26, 2012 tax,It seems you missed the Forum Rules on your way in. Please read them now - particularly the bit about not discussing site auto-login methods - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts