Page 1 of 1

Why is my second Gui not opening?

Posted: 07 Sep 2020, 14:11
by CorruptingNostalgia
There is a problem with my script:

Code: Select all

Gui, Add, Text, ,F1 to Pause/Unpause and F2 to Exit this script. Made by Me
Gui, Add, Button, gGUIClose, Ok
Gui, Show, Center, Instructions
Return

GUIClose:
Gui, Destroy
Return

Gui, Show , w200 h100, Hold To Click Application
gui, add, text, section, Start/Pause Hotkey:
Gui, Add, Hotkey, vChosenHotkey
gui, add, text, section, Intervals:
Gui, Add, Edit, r1 vMyEdit w100 number, Milliseconds
return
Whenever you execute the script, it causes the second gui to not appear after you press ok to the first one.

Can someone fix it so that the second gui will only appear when you close the first one/ press ok.

Thanks in advance

Re: Why is my second Gui not opening?

Posted: 07 Sep 2020, 15:04
by garry
example

Code: Select all

Gui, Add, Text, ,F1 to Pause/Unpause and F2 to Exit this script. Made by Me
Gui, Add, Button, gA1, Ok
Gui, Show, Center, Instructions
Return
A1:
Gui, Destroy
;Return
Gui, Show , w200 h100, Hold To Click Application
gui, add, text, section, Start/Pause Hotkey:
Gui, Add, Hotkey, vChosenHotkey
gui, add, text, section, Intervals:
Gui, Add, Edit, r1 vMyEdit w100 number, Milliseconds
return
Guiclose:
exitapp
esc::exitapp