phinney Posted August 25, 2009 Share Posted August 25, 2009 Im currently writting a script to automate clicking different submit buttons on webpages, I have successfully made the script click the first submit button. Clicking on that submit button opens another Internet explorer window which has another submit button I need the script to click on. $oIE = _IECreate ("http://search.vampirefreaks.com/search_results.php?pg="&$page&"&sex="&$gender&"&search_city=&search_state=&search_state2=&search_country=&range=10&zipcode=&min_age=&max_age=&sexuality=0&sortby="&$sortby&"&only_pics=1&invite=cult&invite_to=Vocal_Violence") _IELoadWait ($oIE) $oForm = _IEFormGetCollection ($oIE,1) $oQuery = _IEFormElementGetCollection ($oForm,1) _IEFormSubmit ($oForm) That is the code to click the first submit button, upon clicking it a new window opens up with another submit button on it. The url to the second page that opens is: http://vampirefreaks.com/group_invite.php The question I have is how do i make the second instance of Internet Explorer have a variable like $oIE in the first one and be able to use the _IELoadWait and other commands with that new window? Note: I cant have the script make a new window using _IECreate with the second pages url Link to comment Share on other sites More sharing options...
Juvigy Posted August 25, 2009 Share Posted August 25, 2009 Check out the _IEAttach() function. Link to comment Share on other sites More sharing options...
phinney Posted August 26, 2009 Author Share Posted August 26, 2009 Thank you, That is EXACTLY what i needed! 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