Jump to content
Sign in to follow this  
MuffettsMan

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

Recommended Posts

MuffettsMan

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
Pioneer5250

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
DW1

#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

Share this post


Link to post
Share on other sites
MuffettsMan

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
MuffettsMan

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.