Jump to content
Sign in to follow this  
saulik

Winwait don´t breack the execution of the script.

Recommended Posts

water

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 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - 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
saulik

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
JLogan3o13

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
Valik

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  

×