Func STARTORSTOP() <<line 3846
If $STOP = True Then
AdlibDisable("Main") <<line 3848
GUICtrlSetData($STARTORSTOP, "Stop F10")
GUICtrlSetOnEvent($STARTORSTOP, "StartOrStop")
$STOP = False
Else
AdlibEnable("Main") <<line 3853
GUICtrlSetData($STARTORSTOP, "Start F10")
GUICtrlSetOnEvent($STARTORSTOP, "StartOrStop")
$STOP = True
EndIf
try it editing to:
Func STARTORSTOP()
If $STOP = True Then
AdlibUnregister("Main")
GUICtrlSetData($STARTORSTOP, "Stop F10")
GUICtrlSetOnEvent($STARTORSTOP, "StartOrStop")
$STOP = False
Else
AdlibRegister("Main")
GUICtrlSetData($STARTORSTOP, "Start F10")
GUICtrlSetOnEvent($STARTORSTOP, "StartOrStop")
$STOP = True
EndIf
That worked to me...
Compile with