Jump to content
Sign in to follow this  
2dkot

Noob problem of mine

Recommended Posts

2dkot

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

Share this post


Link to post
Share on other sites
PsaltyDS

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

Share this post


Link to post
Share on other sites
2dkot

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.

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.