Lets say we had this code which lets button 2 interrupt button 1. What if I wanted when after clicking button 2, it stops 1 completely and button 1's function never resumes until I click it again. How would it be done?
#include <GUIConstantsEx.au3>
; Declare a flag
Global $fRunOne = False
Opt("GUIOnEventMode", 1)
$hGUI = GUICreate("Test", 500, 500)
GUISetOnEvent($GUI_EVENT_CLOSE, "_Exit")
$hButton_1 = GUICtrlCreateButton("Func One", 10, 10, 80, 30)
GUICtrlSetOnEvent($hButton_1, "_F