Jump to content
Sign in to follow this  
dexto

Undocumented _isPressed() keys

Recommended Posts

dexto

Just noticed that some of the multimedia keyboard keys are not documented for _isPressed()

A6 Browser Back

A7 Browser Forward

A9 Browser Stop

A8 Browser Reload

AC Browser Homepage

AD Sound Mute

B0 Player Next

B1 Player Previous

B2 Player Stop

B3 Player Start/Pause

B4 Mail Client

B5 Player Open

B6 My Computer

B7 Calculator

:)

Share this post


Link to post
Share on other sites
Yashied

Just noticed that some of the multimedia keyboard keys are not documented for _isPressed()

A6 Browser Back

A7 Browser Forward

A9 Browser Stop

A8 Browser Reload

AC Browser Homepage

AD Sound Mute

B0 Player Next

B1 Player Previous

B2 Player Stop

B3 Player Start/Pause

B4 Mail Client

B5 Player Open

B6 My Computer

B7 Calculator

:)

Any of this list.

Share this post


Link to post
Share on other sites
dexto

I bet its there :)

Didn't know about that page so:

#include <Misc.au3>
$dll = DllOpen('user32.dll')

While True
    For $x = 0 To 255
        If _IsPressed(Hex($x, 2), $dll) Then
            ConsoleWrite(Hex($x, 2))
            While _IsPressed(Hex($x, 2), $dll)
                Sleep(1)
            WEnd
        EndIf
    Next
    Sleep(1)
WEnd

Func OnAutoItExit()
    DllClose($dll)
    Exit
EndFunc  ;==>OnAutoItExit
Edited by dexto

Share this post


Link to post
Share on other sites
Yashied

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.