Tastenkombination abfragen [Gelöst]
Verfasst: 20.09.2008 14:38
Titel mag irreführend sein aber mir ist nichts besseres eingefallen.
Ich brauche die Hex werte der Tasten die gerade gedrückt sind. Soweit sogut, mit einer Taste Funktioniert das auch blendend:
auch für zwei Tastengleichzeitig funktionierts
Leider brauche ich das ganze in beiden Versionen gleichzeitig und so funktionierts leider nicht:
MfG Tompazi
Ich brauche die Hex werte der Tasten die gerade gedrückt sind. Soweit sogut, mit einer Taste Funktioniert das auch blendend:
Code: Alles auswählen
Repeat
For b = 1 To 254
If b <> 1 And b <> 2 And b <> 4 And b <> 160 And b <> 161 And b <> 162 And b <> 163 And b <> 164 And b <> 165
If GetAsyncKeyState_(b)
While GetAsyncKeyState_(b) : Wend
Debug Hex(b)
EndIf
EndIf
Next b
Until GetAsyncKeyState_(#VK_ESCAPE)
Code: Alles auswählen
For a = 1 To 254
For b = 1 To 254
If b <> 1 And b <> 2 And b <> 4 And a <> 1 And a <> 2 And a <> 4 And a <> b And b <> 160 And b <> 161 And b <> 162 And b <> 163 And b <> 164 And b <> 165 And a <> 160 And a <> 161 And a <> 162 And a <> 163 And a <> 164 And a <> 165
If GetAsyncKeyState_(a) And GetAsyncKeyState_(b)
While GetAsyncKeyState_(a) And GetAsyncKeyState_(b) : Wend
Debug Hex(a) + "/" + Hex(b)
EndIf
EndIf
Next b
Next aCode: Alles auswählen
For a = 1 To 254
For b = 1 To 254
If b <> 1 And b <> 2 And b <> 4 And a <> 1 And a <> 2 And a <> 4 And a <> b And b <> 160 And b <> 161 And b <> 162 And b <> 163 And b <> 164 And b <> 165 And a <> 160 And a <> 161 And a <> 162 And a <> 163 And a <> 164 And a <> 165
If GetAsyncKeyState_(a) And GetAsyncKeyState_(b)
While GetAsyncKeyState_(a) And GetAsyncKeyState_(b) : Wend
Debug Hex(a) + "/" + Hex(b)
ElseIf GetAsyncKeyState_(a)
While GetAsyncKeyState_(a) : Wend
Debug Hex(a)
EndIf
EndIf
Next b
Next a