Jump to content

Need help with commands with Internet Explorer


Recommended Posts

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

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
 Share

  • Recently Browsing   0 members

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