What code do i use for (this) button in AHK?
-
- Posts: 66
- Joined: 25 Oct 2018, 11:33
What code do i use for (this) button in AHK?
I am trying to figure out what AHK perceives as a press of a certain key. Is there a simple (or even not so simple) way to figure out what to put into AHK for a certain key? (the key I am looking to define is a button on a USB device)
Re: What code do i use for (this) button in AHK?
It may not register as a key or key combination, but if it does, you can find out what it registers as by running this script which will show you the key history:
Code: Select all
#UseHook
MsgBox, Press the key of interest then click OK below to see key history.`n`nAfter viewing the key history, press Esc to exit script.
KeyHistory
return
Esc::ExitApp
-
- Posts: 66
- Joined: 25 Oct 2018, 11:33
Re: What code do i use for (this) button in AHK?
I'm looking for the below highlighted key.
is it unusable in AHK if it says "not found" for the key? or does the fact that it shows up as VK=FF and SC=101 mean that i can use it somehow?- Attachments
-
- image.png (47.24 KiB) Viewed 298 times
thank you,
Someguy
Someguy
Re: What code do i use for (this) button in AHK?
Not sure, but perhaps it is just the key name that is not found. I would try
Edit: The AHK docs say that vkFF 'is reserved to mean "no mapping" (a key which has no function)' by Microsoft - doesn't sound good. I would still try the scan code SC101.
Code: Select all
SC101::msgbox yes
Who is online
Users browsing this forum: Stinkfoot9 and 130 guests