Sign in to follow this  
Followers 0
saulik

Winwait don´t breack the execution of the script.

5 posts in this topic




Set the timer value of function WinWait and check the returned value. If it is 0 then the timeout expired = the window never appeared.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

Water,

Thank's a lot, but what' wrong whit my script below?

I want just wait until the window appear and of the script continue for execute:

Send("{TAB}")

MsgBox(4096, "UPDATE", "Você está logado no ambiente INVESTPREV", 2)

My version is: 1.79

Variables

Dim $r

Dim $e

WinActivate("[CLASS:Tform1]", "")

ControlClick("Form1", "", "[CLASS:TButton; TEXT:Button1; INSTANCE:1]")

$e = 0

If @error = 0 Then

$r = WinWait("[Form2]", "", 10)

If $r = 1 Then

;WinActivate("[CLASS:Tform2]", "")

Send("{TAB}")

MsgBox(4096, "UPDATE", "Você está logado no ambiente INVESTPREV", 2)

Else

$e = 1

EndIf

EndIf

Share this post


Link to post
Share on other sites

You really need to choose one of these two topics and stick to it. This double posting only makes it harder for people to assist you.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Thread locked for being a duplicate.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0