geekhack

geekhack Community => Other Geeky Stuff => Topic started by: Bludude4 on Wed, 06 May 2015, 21:04:42

Title: AutoHotKey Script for Fn Key to Menu Key?
Post by: Bludude4 on Wed, 06 May 2015, 21:04:42
Okay, so I downloaded AutoHotKey for the sole purpose of remapping the Fn key to be the Menu key, because I need Menu more than I need media control or Windows lock.  But, it doesn't seem like that's how the script works, at least not on a basic level.  So does anyone have a copypasta where the script DOES work to turn Fn into Menu?
Title: Re: AutoHotKey Script for Fn Key to Menu Key?
Post by: trizkut on Wed, 06 May 2015, 21:11:43
I think most FNs don't produce a scan code.  You could try the method listed in the special keys section here:

http://www.autohotkey.com/docs/KeyList.htm#SpecialKeys

But if it doesn't generate a SC#, you're out of luck.
Title: Re: AutoHotKey Script for Fn Key to Menu Key?
Post by: user 18 on Wed, 06 May 2015, 21:20:31
You're trying on a QFR, right? 99% sure that doesn't send a scancode as far as the host. Will confirm for you in 1 sec.
Title: Re: AutoHotKey Script for Fn Key to Menu Key?
Post by: Bludude4 on Wed, 06 May 2015, 21:21:00
You're trying on a QFR, right? 99% sure that doesn't send a scancode as far as the host. Will confirm for you in 1 sec.

QFR, yep.
Title: Re: AutoHotKey Script for Fn Key to Menu Key?
Post by: user 18 on Wed, 06 May 2015, 21:25:51
Nope, no scancode comes through, so your PC (and therefore AHK) has no idea a key has even been pressed. You could try mapping alt+win to menu, or looking into an alternate controller. Bpiphany has a drop-in replacement that allows you to remap and customize scancodes at the keyboard level.
Title: Re: AutoHotKey Script for Fn Key to Menu Key?
Post by: Bludude4 on Wed, 06 May 2015, 21:46:43
Nope, no scancode comes through, so your PC (and therefore AHK) has no idea a key has even been pressed. You could try mapping alt+win to menu, or looking into an alternate controller. Bpiphany has a drop-in replacement that allows you to remap and customize scancodes at the keyboard level.

What's the script that would remap ctrl and win to menu?
Title: Re: AutoHotKey Script for Fn Key to Menu Key?
Post by: trizkut on Wed, 06 May 2015, 21:59:23
Nope, no scancode comes through, so your PC (and therefore AHK) has no idea a key has even been pressed. You could try mapping alt+win to menu, or looking into an alternate controller. Bpiphany has a drop-in replacement that allows you to remap and customize scancodes at the keyboard level.

What's the script that would remap ctrl and win to menu?


LControl & LWin::Send {AppsKey}
Title: Re: AutoHotKey Script for Fn Key to Menu Key?
Post by: user 18 on Wed, 06 May 2015, 22:01:14
I don't use AHK, but give this a try:

Code: [Select]
^#::Send {AppsKey}
Title: Re: AutoHotKey Script for Fn Key to Menu Key?
Post by: Bludude4 on Wed, 06 May 2015, 22:11:02
I ran trizkut's code and it worked. Thanks, all. :D