MuffettsMan Posted January 10, 2008 Posted January 10, 2008 I'm trying to figure out what the hexkey code is for - and = (on the keyboard right of the numbers not the numberpad) found 6D Subtract key in the helpfile but thats refering to the one on the num keypad.. i assume its somthing obvious but for the life of me i can't see it. Don't let that status fool you, I am no advanced memeber!
Pioneer5250 Posted January 10, 2008 Posted January 10, 2008 Listed in the appendix in the help file under asci characters it says 2d for - and 3d for =
DW1 Posted January 10, 2008 Posted January 10, 2008 #include<misc.au3> ConsoleWrite( "console debug:" ) While 1 For $i = 0 To 255 If _IsPressed(Hex($i)) Then While _IsPressed( Hex($i) ) ; do nothing WEnd ConsoleWrite( Hex($i) & " = " & Chr($i) & @CRLF) EndIf Next WEnd AutoIt3 Online Help
MuffettsMan Posted January 10, 2008 Author Posted January 10, 2008 thanks thanks guys now i can finally quit beating my head on the keyboard Don't let that status fool you, I am no advanced memeber!
MuffettsMan Posted January 10, 2008 Author Posted January 10, 2008 and it works! <3 #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 Sleep ( 250 ) If _IsPressed("bd", $dll) Then MsgBox(0,"_IsPressed", "- Key Pressed") EndIf If _IsPressed("bb", $dll) Then MsgBox(0,"_IsPressed", "= Key Pressed") EndIf WEnd DllClose($dll) Don't let that status fool you, I am no advanced memeber!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now