ich versuche eine hotkey temporär zu disabeln da es nutzer gibt die halt viel zu schnell die taste drücken und dann geht nix mehr...
(disable geht aus unbekanntem grund nicht)
hier mal das script:
[autoit]Local $tempF1 = IniRead("mw2keys.ini", "F-Keys", "F1hotkey", "!{PGUP}") ; die taste aus der ini die belegt ist
HotKeySet($tempF1, "_send1") ; da wird sie auf die funktion gesetzt (funzt)
Func _send1() die funktion
HotKeySet($tempF1, "_send00"); hier versuche ich zu disablen indem ich einfach eine leere funktion zuweise
_controlsendtest()
_SoundorSpeach($F1, 2)
Local $xxhWnd = ControlGetHandle($consoletitle, "", $consoledit)
ssend($xxhWnd, $F1)
ssend($xxhWnd, "0D", 1)
ControlSend($consoletitle, "", $consoledit, "{Enter}")
HotKeySet($tempF1, "_send1") ;disable soll wieder aufgehoben werden und wieder die alte funktion bekommen ...
EndFunc ;==>_send1
Func _send00()
EndFunc ;==>_send00