Jump to content

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


Recommended Posts

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!

Link to comment
Share on other sites

#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

Link to comment
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!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...