This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hello, I am trying to use AutoHotkey to remap the media keys on my mechanical keyboard, however, some seem to be undetected and I'm wondering if I am doing something wrong. The 4 media keys are My Pc, Calculator, Mail, and Media. I was using this script to try to test the keys.
Browser_Back::
Browser_Forward::
Browser_Refresh::
Browser_Stop::
Browser_Search::
Browser_Favorites::
Browser_Home::
Volume_Mute::
Volume_Down::
Volume_Up::
Media_Next::
Media_Prev::
Media_Stop::
Media_Play_Pause::
Launch_Mail::
Launch_Media::
Launch_App1::
Launch_App2::
MsgBox, Key Detected!
return
I assumed they should have been Launch_Mail, Launch_Media, Launch_App1, and Launch_App2 respectively but since it didn't work I tried adding all of the multimedia keys. When I run it the mail and calculator key is detected but the media key and my computer key are not. As far as I can tell I used the full list of multimedia keys from the documentation and none of them are detecting these keys. Is there some other name that I should try for these keys or are they just not going to work?
I am new to AutoHotkey so I'm sorry if this is a stupid question or I am missing something obvious but if anyone knows how I can remap these 2 keys it would be a great help!
Edit:
Using they key history command I was able to find out the hexadecimal value of the 2 keys and use that. Now it does allow the message box to appear but the My PC and Media Player windows still open as well, is there a way to disable that function so I can make them do something else?
Subreddit
Post Details
- Posted
- 4 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/AutoHotkey/...