GuiClose: Or F3::
Posted: 09 Sep 2020, 09:33
Code: Select all
GuiClose:
Gui, New
Gui, Add, Text,,Are you sure you want to exit this application?
Gui, Add, Button, g1, Continue
Gui, Show, Center, Msgbox
Return
F3::
Gui, New
Gui, Add, Text,,Are you sure you want to exit this application?
Gui, Add, Button, g1, Continue
Gui, Show, Center, Msgbox
Return
As you can see here, Pressing F3 and Closing the GUI does the same thing. I was wondering if you could shorten this so you that the codes is something like this:
Code: Select all
GuiClose: Or F3::
Gui, New
Gui, Add, Text,,Are you sure you want to exit this application?
Gui, Add, Button, g1, Continue
Gui, Show, Center, Msgbox
Return
Thanks in advance