Hi Leute
Ich schreibe gerade ein Skript, das mit einem Hotkey ein GUI öffnen soll, und möchte den Hotkey variabel machen.
Hab aber keine Idee wie ich das anstellen soll..
Hätte mal so angefangen (ich weiß, ist nicht umbedingt die beste Möglichkeit, war ja nur ein Ansatz)
[autoit]Func _ChangeHotkey()
MsgBox(64, "New Hotkey", "Press 'OK' and then the new hotkey")
Do
Sleep(10)
$sReValTemp = _IsPressed(01)
Until $sReValTemp = 0 Or 1
EndFunc
[/autoit]Die Idee wäre, nach Bestätigung der MsgBox eine Taste zu drücken...
Aber ich weiß nicht wie ich auf den Tastendruck warten soll
Hab gerade erst wieder angefangen mit skripten, seit nem jahr oder so, kann also sein, dass es ne simple Lösung gibt.