I wish that Gui threads could also use Critical, Off to allow Gui controls to interrupt themselves.Clicking on a control while its g-label is already running from a prior click will have no effect and the event is discarded. To prevent this, use Critical as the subroutine's first line...
Gui, Add, Button, w75, Toggle
Gui, Show, w200
return
GuiClose:
ExitApp
ButtonToggle:
Critical, Off ;Allow this button to interrupt itself.
bool := !bool
While (bool) {
ToolTip, looping
}
ToolTip
returnOr maybe something like #MaxThreadsPerGuiControl?




