I am using a gui as a message box so I can get a larger font. My OK button closes out the gui without closing the whole AHK file. Here is the code I am using to close out the gui
ButtonOK: ; Press to reload the app
reload
Return
not sure if there is a better way to close out the gui without closing the whole ahk file.
My main question though is how can I close the gui after 5 seconds if the OK Button hasnt been clicked?
Thanks for any help
Gui Time Out?
Re: Gui Time Out?
Code: Select all
#Requires AutoHotkey v1.1.33
Gui Font, s10
Gui Add, Text , w300 , Text text text
Gui Add, Button, wp Default, OK
Gosub F3
F3:: ; F3 = Show the GUI
Gui Show,, Button (F3 = show again)
SetTimer ButtonOK, -5000
Return
ButtonOK:
Gosub GuiEscape
MsgBox 64, Status, Done!
Return
GuiEscape:
SetTimer ButtonOK, Off
Gui Hide
SoundBeep 2000
Return
Re: Gui Time Out?
Thank You!!! It works great