-
When I click Cancel it stops the rest of the code, which is what I want. However, when I click the 'X' to close it (top right), the code continues running. Is it possible to make clicking the 'X' also stop running the code? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I don't think I ever used the ❌ to close it. We could disable the X so you can no longer use the X to close 👍 😄 1. Add
2. use
Now I haven't actually tested this apart from just now, and the |
Beta Was this translation helpful? Give feedback.
I don't think I ever used the ❌ to close it. We could disable the X so you can no longer use the X to close 👍 😄
1. Add
-SysMenu
to the Gui to disable the X so you can't use it https://github.com/lintalist/lintalist/blob/master/plugins/Choice.ahk#L50Gui, 10:+Owner +AlwaysOnTop +Resize +MinSize -SysMenu
2. use
Gosub, CancelChoice
- I see there is a difference in how X and cancel are processed, so perhaps comment these two lines https://github.com/lintalist/lintalist/blob/0ad490957c76bb01480ae7480ffc3832b221eb02/lintalist.ahk#L2138C2-L2139and above
Gui, 1:-Disabled
insertGosub, CancelChoice
Now I haven't actually tested this apart from just now, and the
Gui, 10:
and10GuiClose:
is used fo…