Code: Select all
::g::
Gui, +AlwaysOnTop +Disabled -SysMenu +Owner
Gui, Font, s50, Verdana
Gui, Add, Text, cTeal,text
Gui, Font, s25, Verdana,
Gui, Add, Text, cTeal,second text
Gui, Show , H500,
Gui, Show, W888,
Gui, Show, Center,
Gui, Color, cNavy
return
Enter::
reload,
Gui, Hide
return
I'm very new to AHK and haven't studied it properly yet. I want to be able to press enter and for the window to close, but not to 'exit the app', as I want to be able to trigger it again an indefinite amount of time. However the way I have written it is messing with my enter-key otherwise: I have to double-tap the enter-key in other applications to make it register and sometimes the enter-key won't work at all in other applications while this script is running. Basically I want it work just like a standard AHK message-box.