Jump to content

Recommended Posts

Posted (edited)

I was wondering how I could use custom buttons on your keyboard (eg. Media buttons, Volume Buttons, etc...) or even extra mouse buttons for HotKeySet and _IsPressed. The scripts I found here only worked at finding the default keys.

Thanks.

Edited by yousifucv
Posted

I was wondering how I could use custom buttons on your keyboard (eg. Media buttons, Volume Buttons, etc...) or even extra mouse buttons for HotKeySet and _IsPressed. The scripts I found here only worked at finding the default keys.

Thanks.

For _IsPressed()

80H-87H

F17 key - F24 key

Posted

Did you even do a search? This question has been asked before. Search for "Media buttons".

Yes I did. Nothing came up, and nothing comes up still.

For _IsPressed()

80H-87H

F17 key - F24 key

I don't know what I'm supposed to do with this.

You already have {MEDIA_NEXT}, {MEDIA_PREV} etc in the helpfile, what more do you need?

I don't see how this has to do with anything I asked for.
Posted (edited)

I'm trying to find out how I could use these extra keyboard and mouse buttons to do whatever I want them to do using HotKeySet and _IsPressed.

How am I supposed to know what the Volume button's 'code' is?

Edited by yousifucv
Posted

I'm trying to find out how I could use these extra keyboard and mouse buttons to do whatever I want them to do using HotKeySet and _IsPressed.

And what is more extra if not key functions (F13-F24) or what AdmiralAlkex say about {MEDIA_NEXT}, {MEDIA_PREV}.

You have some prototype keyboard?

Posted

I'm trying to find out how I could use these extra keyboard and mouse buttons to do whatever I want them to do using HotKeySet and _IsPressed.

In the helpfile under "Send" is a table where you find what you are searching, these values can be used with HotKeySet too.

Posted (edited)

For ispressed you can discover the values like this:

#include <misc.au3>

while(true)
    Local $val
    $val = _IsAnyKeyPressed()
    if ( $val > -1 ) Then
        MsgBox(0, "", '_IsPressed("' & StringRight(String(Hex($val)), 2) & '")')
    EndIf
WEnd
Func _IsAnyKeyPressed($start = 0, $end = 255)
    For $i = $start to $end
        if (_IsPressed(Hex($i))) Then return $i
    Next
    return -1
EndFunc

EDIT: Changed MsgBox output to _IsPressed style.

Edited by danwilli
Posted

Thanks danwilli, but thats just like the other script I found. It doesn't work, it doesn't find values for my custom buttons.

I guess there isn't a way.

Thanks again.

Posted

Thanks danwilli, but thats just like the other script I found. It doesn't work, it doesn't find values for my custom buttons.

I guess there isn't a way.

Thanks again.

I am thinking that his can be done, but may involve a dll call to hook the keyboard...

I would have tested the script for you first, but I don't have any fancy keyboards, all standard white qwerty boards :)

I guess this is the part where we wait for one of the smart people to come make us look like fools LMAO

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
×
×
  • Create New...