geekhack

geekhack Community => Keyboards => Topic started by: ykno on Mon, 04 April 2016, 17:35:22

Title: Program keyboard to have media shortcuts
Post by: ykno on Mon, 04 April 2016, 17:35:22
so i want to program my keyboard to change the application menu key to FN and then add short cuts that use FN+insert for example to control volume down.

what program can i use to do this with OS like a reg edit or something?
Title: Re: Program keyboard to have media shortcuts
Post by: xtrafrood on Mon, 04 April 2016, 18:33:48
If you use Windows OS AHK works really well for custom shortcuts. There are tons of scripts already available and the website has an indepth guide if you want to write your own script. I used AHK to emulate a scroll wheel for my logitech trackman marble trackball, to lock my Left Windows key, and I used it recently for media keys. :eek:
Title: Re: Program keyboard to have media shortcuts
Post by: Tactile on Mon, 04 April 2016, 18:57:21
Another vote for AutoHotkey.

Here's where to get it...

https://autohotkey.com/
Title: Re: Program keyboard to have media shortcuts
Post by: ykno on Tue, 05 April 2016, 14:07:10
If you use Windows OS AHK works really well for custom shortcuts. There are tons of scripts already available and the website has an indepth guide if you want to write your own script. I used AHK to emulate a scroll wheel for my logitech trackman marble trackball, to lock my Left Windows key, and I used it recently for media keys. :eek:

Another vote for AutoHotkey.

Here's where to get it...

https://autohotkey.com/

ye i looked at this but couldnt work out how to use it xD
Title: Re: Program keyboard to have media shortcuts
Post by: xtrafrood on Tue, 05 April 2016, 14:15:18
Here's the tutorial to get you started: https://autohotkey.com/docs/Tutorial.htm (https://autohotkey.com/docs/Tutorial.htm)

Or search Youtube for tutorials if you are more of a hands on type ;)
Title: Re: Program keyboard to have media shortcuts
Post by: ykno on Tue, 05 April 2016, 15:29:40
Here's the tutorial to get you started: https://autohotkey.com/docs/Tutorial.htm (https://autohotkey.com/docs/Tutorial.htm)

Or search Youtube for tutorials if you are more of a hands on type ;)

i made this script but its not working

if i press my fn key it mutes when i should have to press fn and pause to make it mute


SC163&Pause:: Volume_Mute
SC163&Insert:: Media_Play_Pause
SC163&Home:: Media_Stop
SC163&PgUp:: Volume_Up
SC163&Delete:: Media_Prev
SC163&End:: Media_Next
SC163&PgDn:: Volume_Down
Title: Re: Program keyboard to have media shortcuts
Post by: xtrafrood on Tue, 05 April 2016, 16:09:11
Here's the tutorial to get you started: https://autohotkey.com/docs/Tutorial.htm (https://autohotkey.com/docs/Tutorial.htm)

Or search Youtube for tutorials if you are more of a hands on type ;)

i made this script but its not working

if i press my fn key it mutes when i should have to press fn and pause to make it mute


SC163&Pause:: Volume_Mute
SC163&Insert:: Media_Play_Pause
SC163&Home:: Media_Stop
SC163&PgUp:: Volume_Up
SC163&Delete:: Media_Prev
SC163&End:: Media_Next
SC163&PgDn:: Volume_Down
Try this:
SC163 & Pause:: Volume_Mute
SC163 & Insert:: Media_Play_Pause
SC163 & Home:: Media_Stop
SC163 & PgUp:: Volume_Up
SC163 & Delete:: Media_Prev
SC163 & End:: Media_Next
SC163 & PgDn:: Volume_Down

I was wondering if your FN key would be a problem but I guess it is registering so that's a good sign.

Edit - I just found a script to remap Caps Lock in to a layout switcher :eek:
Title: Re: Program keyboard to have media shortcuts
Post by: ykno on Tue, 05 April 2016, 16:14:57
Here's the tutorial to get you started: https://autohotkey.com/docs/Tutorial.htm (https://autohotkey.com/docs/Tutorial.htm)

Or search Youtube for tutorials if you are more of a hands on type ;)

i made this script but its not working

if i press my fn key it mutes when i should have to press fn and pause to make it mute


SC163&Pause:: Volume_Mute
SC163&Insert:: Media_Play_Pause
SC163&Home:: Media_Stop
SC163&PgUp:: Volume_Up
SC163&Delete:: Media_Prev
SC163&End:: Media_Next
SC163&PgDn:: Volume_Down
Try this:
SC163 & Pause:: Volume_Mute
SC163 & Insert:: Media_Play_Pause
SC163 & Home:: Media_Stop
SC163 & PgUp:: Volume_Up
SC163 & Delete:: Media_Prev
SC163 & End:: Media_Next
SC163 & PgDn:: Volume_Down

I was wondering if your FN key would be a problem but I guess it is registering so that's a good sign.

Edit - I just found a script to remap Caps Lock in to a layout switcher :eek:

no i get a error with that script to where it wont run the script

update never mind i fixed it !

SC163 & Pause::SendInput {Volume_Mute}
SC163 & Insert::SendInput {Media_Play_Pause}
SC163 & Home::SendInput {Media_Stop}
SC163 & PgUp::SendInput {Volume_Up}
SC163 & Delete::SendInput {Media_Prev}
SC163 & End::SendInput {Media_Next}
SC163 & PgDn::SendInput {Volume_Down}
Title: Re: Program keyboard to have media shortcuts
Post by: xtrafrood on Tue, 05 April 2016, 16:56:58
Try something else!
Title: Re: Program keyboard to have media shortcuts
Post by: DvorakDachshund on Tue, 05 April 2016, 17:11:32
I've found that quite a bit of the time the simple :: doesn't work, but using ':: send, ' usually does the trick.
Title: Re: Program keyboard to have media shortcuts
Post by: xtrafrood on Tue, 05 April 2016, 17:13:25
 :thumb: :thumb: