Author Topic: Assign new functions to windows key?  (Read 1533 times)

0 Members and 1 Guest are viewing this topic.

Offline redwald

  • Thread Starter
  • Posts: 17
  • Location: NorCal
Assign new functions to windows key?
« on: Thu, 12 December 2013, 16:40:38 »
From what I understand the function key on most boards is not programmable. You get what you get. I guess thats because its defined in the firmware on the keyboard controller and those commands never get to the OS.

So what I'd like to do is remap the windows key to be like a function key. So for instance... winkey+uparrow=pageup.

Anyone know how it can be done?

Offline Grim Fandango

  • * Esteemed Elder
  • Posts: 1036
  • Location: The Moon
  • "The living still give me the creeps."
Re: Assign new functions to windows key?
« Reply #1 on: Thu, 12 December 2013, 16:42:13 »
I never tried it, but I was always under the assumption that you could change the registry to assign a new function to the windows key, meaning that something like keytweaker should do the trick. However, I could be wrong about that. I know that in some keyboards, some things can not be remapped (like Fn keys), but the windows key should not be a problem.
« Last Edit: Thu, 12 December 2013, 16:45:28 by Grim Fandango »
Mouse Guide 2.0: A list of mice with superior sensors and more.
http://geekhack.org/index.php?topic=56240.0

Offline IvanIvanovich

  • Mr. Silk Underwear
  • Posts: 8199
  • Location: USA
Re: Assign new functions to windows key?
« Reply #2 on: Thu, 12 December 2013, 17:23:28 »
You can't make such kind of macros in registry or any remapper that uses registry like keytweaker since all it is a user friendly front end. Only single key substitution is possible like A=B. To do something+something=key the most used solution is autohotkey. Otherwise you could make the keyboard user programmable with hardware controller replacement.

Offline Reomero

  • Posts: 261
  • Location: New Zealand
  • Manual breather
Re: Assign new functions to windows key?
« Reply #3 on: Thu, 12 December 2013, 18:03:47 »
Use AutoHotKey.

Offline redwald

  • Thread Starter
  • Posts: 17
  • Location: NorCal
Re: Assign new functions to windows key?
« Reply #4 on: Thu, 12 December 2013, 18:16:02 »
Thanks guys...

I just discovered autohotkey while doing my research. Was hoping for a program with a simple interface tho.
I'm still reading thru the documentation to figure out how to do it. However, I don't have any programming/scripting experience.

Need to try "RWin & Up::PgUp" to see if it works.



Offline rowdy

  • HHKB Hapster
  • * Erudite Elder
  • Posts: 21175
  • Location: melbourne.vic.au
  • Missed another sale.
Re: Assign new functions to windows key?
« Reply #5 on: Thu, 12 December 2013, 18:20:09 »
There might be something in here, or you could ask there, perhaps.
"Because keyboards are accessories to PC makers, they focus on minimizing the manufacturing costs. But that’s incorrect. It’s in HHKB’s slogan, but when America’s cowboys were in the middle of a trip and their horse died, they would leave the horse there. But even if they were in the middle of a desert, they would take their saddle with them. The horse was a consumable good, but the saddle was an interface that their bodies had gotten used to. In the same vein, PCs are consumable goods, while keyboards are important interfaces." - Eiiti Wada

NEC APC-H4100E | Ducky DK9008 Shine MX blue LED red | Ducky DK9008 Shine MX blue LED green | Link 900243-08 | CM QFR MX black | KeyCool 87 white MX reds | HHKB 2 Pro | Model M 02-Mar-1993 | Model M 29-Nov-1995 | CM Trigger (broken) | CM QFS MX green | Ducky DK9087 Shine 3 TKL Yellow Edition MX black | Lexmark SSK 21-Apr-1994 | IBM SSK 13-Oct-1987 | CODE TKL MX clear | Model M 122 01-Jun-1988

Ị̸͚̯̲́ͤ̃͑̇̑ͯ̊̂͟ͅs̞͚̩͉̝̪̲͗͊ͪ̽̚̚ ̭̦͖͕̑́͌ͬͩ͟t̷̻͔̙̑͟h̹̠̼͋ͤ͋i̤̜̣̦̱̫͈͔̞ͭ͑ͥ̌̔s̬͔͎̍̈ͥͫ̐̾ͣ̔̇͘ͅ ̩̘̼͆̐̕e̞̰͓̲̺̎͐̏ͬ̓̅̾͠͝ͅv̶̰͕̱̞̥̍ͣ̄̕e͕͙͖̬̜͓͎̤̊ͭ͐͝ṇ̰͎̱̤̟̭ͫ͌̌͢͠ͅ ̳̥̦ͮ̐ͤ̎̊ͣ͡͡n̤̜̙̺̪̒͜e̶̻̦̿ͮ̂̀c̝̘̝͖̠̖͐ͨͪ̈̐͌ͩ̀e̷̥͇̋ͦs̢̡̤ͤͤͯ͜s͈̠̉̑͘a̱͕̗͖̳̥̺ͬͦͧ͆̌̑͡r̶̟̖̈͘ỷ̮̦̩͙͔ͫ̾ͬ̔ͬͮ̌?̵̘͇͔͙ͥͪ͞ͅ

Offline Reomero

  • Posts: 261
  • Location: New Zealand
  • Manual breather
Re: Assign new functions to windows key?
« Reply #6 on: Thu, 12 December 2013, 18:20:51 »
The script you would try is:
Code: [Select]
#Up::PgUp

Offline redwald

  • Thread Starter
  • Posts: 17
  • Location: NorCal
Re: Assign new functions to windows key?
« Reply #7 on: Thu, 12 December 2013, 18:41:38 »
My little script didn't work. Probably because of this from the documentation:
Although a pair of keys cannot be directly remapped to single key (e.g. it's invalid to write a & c::b), this effect can be achieved by explicitly adding the up and down hotkeys from the example higher above: simply replace *a:: with a & c::, and replace *a up:: with a & c up::.

Thanks for the link rowdy... I gots some reading to do.  :thumb:

Thanks Reomero...I tried #Up::PgUp but it didn't work either. Don't know why. I think I'll eventually get it figured out after doing some more reading.



Offline Findecanor

  • Posts: 5081
  • Location: Koriko
Re: Assign new functions to windows key?
« Reply #8 on: Fri, 13 December 2013, 03:41:28 »
"Windows" keys? :P ... They are called Left GUI, Right GUI and Application... at least they do in the USB HID spec. which is OS-agnostic.

1. Amiga-like mousekeys. Any GUI + arrow would move the mouse, with acceleration. GUI-Alt are the mouse buttons, on the left and right sides respectively.

2. Make the Application key into a dual-role modifier key for Fn.
A quick tap: Application, like before.
Hold and press another key: Enable Function layer. Lots of media keys here and there.
🍉

Offline adhoc

  • Posts: 216
  • Location: Slovenia
Re: Assign new functions to windows key?
« Reply #9 on: Fri, 13 December 2013, 06:41:16 »
There's a program I once found on the internet that allows you to reregister your keys to anything you like. My F12 on my Cherry, for example, means "Play/Pause". You can reprogram literally ANY key to ANYTHING using that piece of software. All it takes is a reboot so it rewrites the registry.

Offline redwald

  • Thread Starter
  • Posts: 17
  • Location: NorCal
Re: Assign new functions to windows key?
« Reply #10 on: Sat, 14 December 2013, 14:09:31 »
"Windows" keys? :P ... They are called Left GUI, Right GUI and Application... at least they do in the USB HID spec. which is OS-agnostic.

Yes, its more accurate to use LGui & RGui in deference to (U)nix users. But unfortunately even the esteemed AutoHotKey uses the more common "Windows Key" nomenclature of LWin & RWin. And its sad that keyboard makers are still using the windows logo on that key.   :mad:
I'm trying to find a Vortex KBT Race with cherry browns. They include a squirrel key replacement. ;D

There's a program I once found on the internet that allows you to reregister your keys to anything you like. My F12 on my Cherry, for example, means "Play/Pause". You can reprogram literally ANY key to ANYTHING using that piece of software. All it takes is a reboot so it rewrites the registry.

Of which program do you speak?
Are you thinking of key remapping like KeyTweak or SharpKeys. I already use KeyTweak to remap the CapsLock to Control like the HHKB. Those programs can't create combination keys tho, for example Ctl+Alt+1=Home, etc.
« Last Edit: Sat, 14 December 2013, 14:13:19 by redwald »

Offline adhoc

  • Posts: 216
  • Location: Slovenia
Re: Assign new functions to windows key?
« Reply #11 on: Sat, 14 December 2013, 14:38:28 »
Ah yes, SharpKeys. True, you can not assign combos. Even if you could, there's always some elevated pieces of SW that can bypass that (if done in SW).