Jump to content

tab control in maxthon


Ruriko
 Share

Recommended Posts

Is there a way to send a action to a specific tab to do a job? cause all it does is use the first tab window to do that job instead of the new tab. In my script when it clicks on the http://3BRATSMAIL.com/reademail.php?id=400&mailcode=232 link it will open a new tab but it didn't click on a link index 6 instead it did it on the old tab when i want it done in the new tab that just opened. The browser I'm using is Maxthon

#include <IE.au3>
Global $vLink = 1
$oIE = _IECreate("www.gmail.com")
_IELoadWait($oIE)
$oForm = _IEFormGetObjByName($oIE,"gaia_loginform")
$oEmail = _IEFormElementGetObjByName($oForm,"Email")
$oPass = _IEFormElementGetObjByName($oForm,"Passwd")
_IEFormElementSetValue($oEmail,"Username")
_IEFormElementSetValue($oPass,"Password")
_IEFormSubmit($oForm,0)
Sleep(100)
_IENavigate($oIE,"http://mail.google.com/mail/?ui=html&zy=f")
_IELoadWait($oIE)
_IELinkClickByText ($oIE, "3Bratsmail")
MouseClick ("left", 510, 309)
Sleep (5000)
_IELinkClickByText ($oIE, "http://3BRATSMAIL.com/reademail.php?id=400&mailcode=232")
_IELinkClickByIndex ($oIE, 6)
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...