Jump to content
Sign in to follow this  

tabbing problem

Recommended Posts


I'm using maxthon as my browser cause autoit IE.au3 functions work with maxthon too. My script works except for the last part. When I click the "http://3BRATSMAIL.com/reademail.php?id=400&mailcode=232" it will open up a new tab and I want to click on a random link but the script is using the previous tab to do that job instead on the new tab. How can I make it do on the new tab?

#include <IE.au3>
Global $vLink = 1
$oIE = _IECreate("www.gmail.com")
$oForm = _IEFormGetObjByName($oIE,"gaia_loginform")
$oEmail = _IEFormElementGetObjByName($oForm,"Email")
$oPass = _IEFormElementGetObjByName($oForm,"Passwd")
_IELinkClickByText ($oIE, "3Bratsmail")
MouseClick ("left", 510, 309)
Sleep (5000)
_IELinkClickByText ($oIE, "http://3BRATSMAIL.com/reademail.php?id=400&mailcode=232")
_IELinkClickByIndex ($oIE, 6)
Edited by Ruriko

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.