Power and Standby Buttons on Keyboard

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
BGM
Posts: 507
Joined: 20 Nov 2013, 20:56
Contact:

Power and Standby Buttons on Keyboard

13 Dec 2017, 12:01

My keyboard has a Power button and a Standby button that I would like to remap.
However, I don't see any special keys for this in the Key List in the docs.
How can I map these two keys?
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: Power and Standby Buttons on Keyboard

13 Dec 2017, 12:05

You could try AHKHID, in case it works.
NEW Barcode Input Capture (USB and RS232 compatible) - Page 2 - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 73#p170673
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
User avatar
BGM
Posts: 507
Joined: 20 Nov 2013, 20:56
Contact:

Re: Power and Standby Buttons on Keyboard

13 Dec 2017, 16:07

Haha! Figured this one out, too!

This is in the docs under Special Keys at the bottom of the key list page
Special Keys

If your keyboard or mouse has a key not listed above, you might still be able to make it a hotkey by using the following steps:
1.Ensure that at least one script is running that is using the keyboard hook. You can tell if a script has the keyboard hook by opening its main window and selecting "View->Key history" from the menu bar.
2.Double-click that script's tray icon to open its main window.
3.Press one of the "mystery keys" on your keyboard.
4.Select the menu item "View->Key history"
I saw that my Power key on my keyboard was 15E, so now I can do this:

Code: Select all

SC15E::msgbox, hey
And it works!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Araphen, Bing [Bot], Google [Bot], mcd, rubeusmalfoy, ShatterCoder and 91 guests