Sign in to follow this  
Followers 0
phinney

Need help with commands with Internet Explorer

3 posts in this topic

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

Share this post


Link to post
Share on other sites



Check out the _IEAttach() function.

Share this post


Link to post
Share on other sites

Thank you, That is EXACTLY what i needed!

Share this post


Link to post
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
Sign in to follow this  
Followers 0