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

[Solved]Kill gui even with a sleep

$
0
0
Hi,

When I launch this script I can't close the gui because of the high value of the sleep.

I just want the message box appear every 4sec and be able to kill the gui when I want.

Anybody has an idea? thx by advance for your help.

[ autoit ]         
Gui() Func Gui() Local $msg GUICreate("My GUI") GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop $count = 2 while $count > 0 msg("toto","titi") sleep(4000) WEnd WEnd GUIDelete() EndFunc Func msg($x,$y) msgbox("","",$x & $y) end func

Processor

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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