2dkot Posted November 6, 2008 Share Posted November 6, 2008 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 More sharing options...
PsaltyDS Posted November 6, 2008 Share Posted November 6, 2008 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. 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 More sharing options...
senthor Posted November 6, 2008 Share Posted November 6, 2008 working nice on my pc. FileListToArray UDFMy tools Link to comment Share on other sites More sharing options...
2dkot Posted November 7, 2008 Author Share Posted November 7, 2008 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. Damn, it works! Thanks a lot. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now