Wozu auch immer du das brauchst...
Beenden mit ESC-Taste
Code:
;Code by aj1987
#include <Misc.au3>
HotKeySet("{ESC}", "_exit")
Global $hDLL = DllOpen("user32.dll")
Global $isdown=0
Global $zeichen[2] = ["I", "A"]
Global $i = 0
While 1
If _IsPressed("02", $hDLL) And $isdown = 0 Then
$isdown=1
If $i = 2 Then $i = 0
Send($zeichen[$i])
$i = $i + 1
EndIf
If Not _IsPressed("02", $hDLL) Then $isdown = 0
WEnd
Func _exit()
DllClose($hDLL)
Exit (0)
EndFunc ;==>_exit
geht bestimmt einfacher, aber jo... es tut was es soll...