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

Function inside a While statement

$
0
0
So I've been having trouble with AutoIt, I'm putting a function inside a While statement but it doesn't appear to work. Inside my function, I have a IF...Then statement that will create a msgbox. If I start my AutoIt script first and then make the If...Then statement true, the msgbox doesn't appear.

[ autoit ]      
Func somefunction()     If $variable = 1 Then       MsgBox(0, "", "message")     EndIf EndFunc While $Process > 1     somefunction() WEnd

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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