Jump to content

I was searching around for a way to give me the fuctionality of media keys on a keyboard that doesn't have them and ended up finding a rather nice script for autohk that does just that.

Anyway, I thought I would post it incase anyone else wants something like this. (I didn't originally make this script, thought I did add the bit at the bottom that describes which keys do what.)

 

^Left::Send {Media_Prev}
^Down::Send {Media_Play_Pause}
^Right::Send {Media_Next}
+^Left::Send {Volume_Down}
+^Down::Send {Volume_Mute}
+^Right::Send {Volume_Up}

+^.::
MsgBox, 0, , Hello AHK world!
return









;Ctrl+LeftArrow sends Previous
;Ctrl+DownArrow sends Play/Pause
;Ctrl+RightArrow sends Next
;Ctrl+Shift+LeftArrow sends Volume Down
;Ctrl+Shift+DownArrow sends Mute
;Ctrl+Shift+LeftArrow sends Volume Up
;Ctrl+Shift+. invokes MessageBox greeting AHK world (just to show non-oneline key-commands mapping ending w/ return)
;
;^=ctrl, !=alt, +=shift

http://www.mediafire.com/view/47e85ad8cclpodj/Multi-media%20Keys.ahk

"What the... You're not made of Tuesday!"  ―Roberto

 

Link to comment
https://linustechtips.com/topic/87197-autohotkey-media-keys-script/
Share on other sites

Link to post
Share on other sites

Thanks for that, much appreciated.

Arc Midi R2 | Asus Maximus VII Hero | Intel i5 4690k | Asus GTX 970 Strix | Corsair H80 | Crucial M4 128gb | 8gb 1333 Mushkin Silverline | EVGA G2 750

Filko Ninja TKL Cherry MX Black | Mionix Naos | Fiio e10k | Edifier S330D | Sennheiser HD558 | Blue Snowball | Asus PA238QR | Samsung BX2250

Link to post
Share on other sites

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

×