Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

if statements

$
0
0

I'm not sure how you write multiple arguement with the if statements: If windows exist then sleep for 1second, click at coordinates, then go to next function.

 

Here's what I have so first, but doesn't work:

 

Func CloseHim() If WinExists("[CLASS:#32770]","") Then { WinActivate("[CLASS:#32770]","") ;select and close alarm sleep(1000) MouseClick("LEFT", 869, 362, 1) SMC() } Else    SMC() EndFunc

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>