Author Topic: How can I setup media keys on a keyboard without media keys?  (Read 3575 times)

0 Members and 1 Guest are viewing this topic.

Offline nala

  • Thread Starter
  • Posts: 53
  • Location: Argentina
  • sup son ¯\_(ツ)_/¯
How can I setup media keys on a keyboard without media keys?
« on: Fri, 17 August 2012, 18:04:43 »
Basically that. I searched for it on geekhack but couldn't find a solid answer.

Mostly what I want is volume control, and if possible, play/pause on multimedia.
Collection: Filco Majestouch-2 TKL ~ Filco Majestouch-2 TKLRazer BlackWidowUltimate

Offline Djuzuh

  • Posts: 1127
Re: How can I setup media keys on a keyboard without media keys?
« Reply #1 on: Fri, 17 August 2012, 18:07:35 »
autohotkey.

Offline The_Beast

  • * Maker
  • Posts: 3964
  • Location: Wisconsin
  • I like wood ಠ_๏
Re: How can I setup media keys on a keyboard without media keys?
« Reply #2 on: Fri, 17 August 2012, 18:10:39 »
autohotkey.

Yup, AHK is something I use every day at a work. It helps a TON
Vendor Status: Sadly, not taking any orders/pre-orders at this time

Vendor Quick Links: | Vendor Forum | Hardwood Wrist Rests | Hardwood 60% Cases | Customer Gallery | Giveaway |

Offline nala

  • Thread Starter
  • Posts: 53
  • Location: Argentina
  • sup son ¯\_(ツ)_/¯
Re: How can I setup media keys on a keyboard without media keys?
« Reply #3 on: Fri, 17 August 2012, 18:32:39 »
Mind sharing the script I need for volume control? I'm running on Win7 just in case. I tried two scripts but one of them didn't work, and the other one needed like a libraries that I couldn't download as the link was down.
Collection: Filco Majestouch-2 TKL ~ Filco Majestouch-2 TKLRazer BlackWidowUltimate

Offline Djuzuh

  • Posts: 1127
Re: How can I setup media keys on a keyboard without media keys?
« Reply #4 on: Fri, 17 August 2012, 18:38:35 »
Dude, AHK is very easy. Just learn it. :P.

(And yes, I'm too lazy myself to do it xD).

Offline nala

  • Thread Starter
  • Posts: 53
  • Location: Argentina
  • sup son ¯\_(ツ)_/¯
Re: How can I setup media keys on a keyboard without media keys?
« Reply #5 on: Fri, 17 August 2012, 19:56:37 »
Dude, AHK is very easy. Just learn it. :P.

(And yes, I'm too lazy myself to do it xD).

Just for a volume control script? Nah, thanks.
Collection: Filco Majestouch-2 TKL ~ Filco Majestouch-2 TKLRazer BlackWidowUltimate

Offline fohat.digs

  • * Elevated Elder
  • Posts: 6533
  • Location: 35°55'N, 83°53'W
  • weird funny old guy
Re: How can I setup media keys on a keyboard without media keys?
« Reply #6 on: Fri, 17 August 2012, 20:02:37 »
How would you compare Auto Hot Key and Key Tweak?

For those who have used both.
"However, even though I was born in the Mesozoic, I do know what anyone who wants to reach out to young people should say: Billionaires took your money. They took your chance to buy a home. They took your chance at a good education. They stole your opportunities. Billionaires took the things you want in life. If you really want those things, you have to take them back.
That's the message. That's the whole message. Say that every day, not just to reach America's frustrated young white men, but people of every age, race, and gender.
Late-stage capitalism is a wealth-concentration engine, focused on vacuuming up every dollar and putting it in as few hands as possible. Republicans are helping that vacuum suck.
How does a tiny fraction of the population get away with this? They do it by dividing the other 99% of Americans against themselves."
- Marc Sumner 2025-05-30

Offline alaricljs

  • I be WOT'ing all day...
  • ** Moderator Emeritus
  • Posts: 3715
  • Location: NE US
Re: How can I setup media keys on a keyboard without media keys?
« Reply #7 on: Fri, 17 August 2012, 21:10:29 »
Key Tweak merely mangles the registry to re-map the keyboard.  AHK is an entire scripting language where you can execute actions, send complete strings on a single key press, manipulate windows and do all sorts of nifty stuff.

I use AHK to give me volume and playback control w/ OSD, a minimize window combo, and a few other nifty gadgets.

Found the AHK thread
« Last Edit: Fri, 17 August 2012, 21:14:33 by alaricljs »
Filco w/ Imsto thick PBT
Ducky 1087XM PCB+Plate, w/ Matias "Quiet Click" spring-swapped w/ XM Greens

Offline The_Beast

  • * Maker
  • Posts: 3964
  • Location: Wisconsin
  • I like wood ಠ_๏
Re: How can I setup media keys on a keyboard without media keys?
« Reply #8 on: Fri, 17 August 2012, 23:01:24 »
Honestly, I would learn the "language" it's pretty simple to pick up and you can always google and final a solution. For instance, at work I need to type in all caps for the drawings I do in AutoCAD. The problems was it was annoying to have caps lock on, forget about it and type an email sounding super pissed. I googled "autocad caps lock" or something like that, I found a script that disables caps lock entirely except in AutoCAD. So if I switch from AutoCAD to outlook, caps locks turns off. If I go from outlook to AutoCAD, caps lock turns back on. A simple problem, a pre-made script and it's hard to work without it now since I'm so used to it.


Same goes for other scripts I've written. Another example is I turned caps lock into a FN key for a layer on my keyboard to do common AutoCAD tasks that aren't associated with a letter. Without these two scripts, I would spent a whole lot more time on drawings because I would have to type the command or move my mouse to find it on a tool bar. I don't know how I drew before these. Defiantly learn the language
Vendor Status: Sadly, not taking any orders/pre-orders at this time

Vendor Quick Links: | Vendor Forum | Hardwood Wrist Rests | Hardwood 60% Cases | Customer Gallery | Giveaway |

Offline stingrae

  • Posts: 267
Re: How can I setup media keys on a keyboard without media keys?
« Reply #9 on: Sat, 18 August 2012, 01:38:04 »
#IfWinActive    ; works in any active window
~LWin Up:: Return
~RWin Up:: Return
$#F5::SendInput {Media_Play_Pause}
$#F6::SendInput {Media_Next}
$#F7::SendInput {Media_Prev}
$#F8::SendInput {Media_Stop}
Volume_Down::Media_Play_Pause
Media_Prev::Media_Stop
LWin & 0::SendInput {Volume_Mute}
LWin & =::SendInput {Volume_Up}
LWin & -::SendInput {Volume_Down}
return   

Turns the left windows key into a psuedo function key doesn't work too well in games though :D so maybe change to control.
And now you have to learn the script to understand how to change this mess :D
« Last Edit: Sat, 18 August 2012, 01:39:56 by stingrae »
Filco Ninja Tenkeyless  -Noppoo Choc MiniCm Storm Quickfire Rapid

Offline KeyboardRookie

  • Posts: 28
  • Location: Ohio, US
Re: How can I setup media keys on a keyboard without media keys?
« Reply #10 on: Sat, 18 August 2012, 04:45:09 »
Even a media key has its own Scancode in windows OS.
You can modify the registry to allocate keys as media keys.
I assume that is most efficient and less risky.
But unfortunately, you won't be able to use combination key like other keyboard which provides media key.
I'm in chronic intoxication to keyboards,