geekhack
geekhack Community => Keyboards => Topic started by: VentiLator on Fri, 12 November 2010, 12:31:56
-
hi,
sometimes i actually use the win-key (command- or super-key)
but actually none of my older boards have the key. is there any way to remap the key? ctrl+esc doesn't work for the shortcuts.
i was looking into autohotkey but i have no clue how to map the winkey.
-
Yes. I often use KeyTweak to make the ScrollLock key work as a Windows key. It makes a simple change to the registry, you only need to run the program once.
-
oh, that sounds nice! thank you!
do you know how to remap multiple keys / combinations?
-
I use this autohotkey script to map caps lock to be the left win key, and have pressing both shifts together toggle caps lock...
#NoEnv
SendMode Input
#SingleInstance Force
#HotkeyInterval 999999
#MaxHotkeysPerInterval 9999
#UseHook On
; CapsLock becomes LWin, so use both shifts to toggle CapsLock...
;Lshift & Rshift::Send {CapsLock}
Lshift & Rshift::SetCapsLockState, % GetKeyState("CapsLock", "T")? "Off":"On"
Rshift & Lshift::SetCapsLockState, % GetKeyState("CapsLock", "T")? "Off":"On"
CapsLock::LWin
(ignore the first six lines, they're just stuff you tend to have at the top of each script)
-
using the registry looks more elegant to me. thanks though.
-
and you need to reboot to make the registry changes take effect.
-
oh noez, rebooting! my uptime!!1
-
KeyTweak works great for me, as it's a registry change that's active when Windows starts up. With AutoHotkey you've got to wait until you're logged in, and it's only active while the program is running.
-
I suggest using KeyTweak to remap keys to overcome missing keys on a keyboard. (Sharpkeys is a similar utility that some people prefer.) Then use AutoHotkey for the more fancy stuff.
For example if you have an American pre-Windows keyboard and want to use it in Europe, you could map RightAlt (AltGr) to work as the Windows key, and ScrollLock to work as the extra key found on European keyboards (between LeftShift and Z.)
(You can use Ctrl-Alt in place of AltGr, or alternatively remap RightCtrl to act as AltGr.)
At the risk of confusing you, here are the KeyTweak mappings I'm trying now. (I use the "Macintosh Keypad =" scan code to trigger my AutoHotkey functions.)
-
I need to keep this away from my model m's
(http://t0.gstatic.com/images?q=tbn:v_PMcTF-dUw2sM:http://easytechtalk.com/wp-content/uploads/2008/11/windows-key.jpg&t=1)
-
I use sharpkeys to re-map capslock to control and left control to windows.
-
I find I have to game only on the keyboards I own without meta keys, or remove the key left metakey cap during my gaming session. I'm far too prone to hit it in the middle of combat, and the result is utterly unacceptable.