Code: Select all
global czacik:=true
Hotkey, %DzialanieGuzik%, Dzialanie
Hotkey, %ZabezpieczenieczatuGuzik%, Zabezpieczenieczatu
Dzialanie:
if(czacik=true){
Suspend
ToolTip % A_IsSuspended ? "Skrypt wyłączony z użycia" : "", 400, 0
}
Return
;```````````````````````````````````````````````````````````````````````````````````````````
Zabezpieczenieczatu:
~t::
Suspend On
czacik=false
Loop
if (GetKeyState("Enter", "P") || GetKeyState("Escape", "P"))
break
Suspend Off
czacik=true
return
I want that when the label "Zabezpieczenieczatu" is working that the label "Dzialanie" doesn't work, and vice versa when the label "Dzialanie" is working all script is suspended. Label "Dzialanie is a toggle, the same key set it on and off.