Jump to content

Noob problem of mine


2dkot
 Share

Recommended Posts

Hi, all.

So, problem is that:

#include <IE.au3>

$sURL = "http://blabla/client/index.html"

$oIE = _IECreate($sURL)

_IELinkClickByText ( $oIE, "Установить приложение" )

WinWaitActive("","")

MouseClick ("left", 613, 523, 2)

MouseClick or Controlclick doesn't work. ^((

Link to comment
Share on other sites

Hi, all.

So, problem is that:

#include <IE.au3>

$sURL = "http://blabla/client/index.html"

$oIE = _IECreate($sURL)

_IELinkClickByText ( $oIE, "Установить приложение" )

WinWaitActive("","")

MouseClick ("left", 613, 523, 2)

MouseClick or Controlclick doesn't work. ^((

The time from _IELinkClickByText() to WinWaitActive(), then to MouseClick() will be single digit milliseconds. The window you are looking for may not exist yet. The WinWaitActive("","") doesn't help you because "" for both the title and text parameters specifies the current active window. So it is equivalent to "wait until the currently active window is active", which doesn't help. Put some specification in there for the window you are really waiting for.

Note that if the window is a popup triggered by that link, you may need to add the $f_wait = 0 parameter to it:

_IELinkClickByText($oIE, "Установить приложение", 0, 0)

And welcome to AutoIt.

:mellow:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Link to comment
Share on other sites

The time from _IELinkClickByText() to WinWaitActive(), then to MouseClick() will be single digit milliseconds. The window you are looking for may not exist yet. The WinWaitActive("","") doesn't help you because "" for both the title and text parameters specifies the current active window. So it is equivalent to "wait until the currently active window is active", which doesn't help. Put some specification in there for the window you are really waiting for.

Note that if the window is a popup triggered by that link, you may need to add the $f_wait = 0 parameter to it:

_IELinkClickByText($oIE, "Установить приложение", 0, 0)

And welcome to AutoIt.

:mellow:

Damn, it works!

Thanks a lot.

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