Hi, Ich bins mal wieder mit nem neuen script und natürlich auch... mit einem neuen problem
Und zwar will ich, dass mit meinem script nach verwendung eines hotkeys solange der input geblockt wird bis ein hotkey verwendet wird (und hier ist das problem). Anschließend wird der input wieder freigegeben.
Nur wie kriege ich es hin, dass genau dieser hotkey eine ausnahme im blockinput befehl ist ?
Mein bisheriger Quellcode:
[autoit]$poop = 0
HotKeySet ("^s", "starter")
HotKeySet ("^p", "abfrage")
Func abfrage ()
$poop = $poop +1
EndFunc
Func starter ()
While 1
if $poop = "1" Then
BlockInput (0)
EndIf
if $poop = "0" Then
blockinput (1)
EndIf
WEnd
EndFunc
while 2
Sleep (1000)
WEnd