Jump to content

How to get new broswer page before authorization


Evise
 Share

Recommended Posts

Hello!

I have a little problem.

Once authorized, you must go to the tab "Fights". But it shows an warning — Warning from function _IELinkClickByText, $ _IEStatus_NoMatch. I'm not sure, but I think that we have to somehow load the "new" page, because we are logged in, and the script reads from the login page.

AutoIT code:

Do

$oLog = _IEGetObjById($oIE, 'login')
If @error Then ExitLoop

_IEFormElementSetValue($oLog, $MyLogin)
If @error Then ExitLoop

$oPass = _IEGetObjById($oIE, 'password')
If @error Then ExitLoop
_IEFormElementSetValue($oPass, $MyPassword)
If @error Then ExitLoop

$oBtn = _IEGetObjById($oIE, 'maximize')
If @error Then ExitLoop

_IEAction($oBtn, 'click')
If @error Then ExitLoop

$oOk = _IEGetObjByName ($oIE, 'btnOk')
If @error Then ExitLoop
   
_IEAction($oOk, 'click')
If @error Then ExitLoop

Until 1

Sleep(5000)
_IELinkClickByText($oIE, "Fights")

We get a url like this: http://site.com/script.pl?0.534570675574717, so i need to read it automatically. (if I understand correctly)

Thank you in advance and sorry for my bad english.

Edited by Evise
Link to comment
Share on other sites

Welcome to the forum.

What are you logging into?

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

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...