Sign in to follow this  
Followers 0
MuffettsMan

_IsPressed whats the hex key for '-' and '='

5 posts in this topic

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!

Share this post


Link to post
Share on other sites

Listed in the appendix in the help file under asci characters it says 2d for - and 3d for =

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0