Alternative to AutoHoyKey: KeyTweaker

User avatar
Trent

21 Apr 2012, 07:59

Hello all!

So, in my quest to remap the Insert key to the Windows key I obviously first went to autohotkey. I had never used it before and wasn't really font of having to write scripts just to remap a single key (I don't mind writing scripts and the like, but was looking for sometime quick and dirty). Searching around their FAQ they mentioned an alternative that edits the registry for a key remap.

The tool is called KeyTweaker and can be downloaded here: http://webpages.charter.net/krumsick/

It is a small download, and extremely simple. I found it to suit my needs better than autohotkey. I thought I would share it with everyone here as a simple alternative if you aren't interested in writing scripts.

Trent

User avatar
off

21 Apr 2012, 14:32

weaksauce. :P

Code: Select all

If you prefer using your numpad ins/del:
#SingleInstance force
#UseHook
#InstallKeybdHook
#NoEnv
SendMode Input
; numpad will still work normally when numlock is on
NumPadDel:: send {AppsKey}
NumPadIns:: send {RWin Down}
NumPadIns Up:: send {RWin Up}
; win+hotkeys will work too. if you like app+hotkeys, change that the same way.
c'est ca!
But yeah, gui is easy etc etc.
But good luck emulating scrollwheel with keytweaker ;)

And if you are using autohotkey by now, I seriously recommend adding these simple windows explorer fixes:
Spoiler:
I hate tapping the side of F1 when going for F2, so disabled that ^^
and more importantly, this gets 'backspace' to function like it should in explorer.

Code: Select all

; explorer hax
{ ;backspace like pre-win7 explorer & f1=f2
#IfWinActive ahk_class CabinetWClass
backspace::
{ ControlGetFocus , controlWithFocus, ahk_class CabinetWClass
;MsgBox, %controlWithFocus% ;can be useful for troubleshooting
if (controlWithFocus == "Edit1" || controlWithFocus == "Edit2" || controlWithFocus == "Edit3" || controlWithFocus == "Edit4" || controlWithFocus == "DirectUIHWND1")
; directuihwnd1 = search box
; directuihwnd3 = explorer main area, systreeview321 = explorer tree area
{ send {BS}
 Return
 }
else
{ send !{UP}
 Return
 }
}

F1::F2
return
}

User avatar
Trent

23 Apr 2012, 13:08

Right, well if you just want to remap one key and have it stick in the registry so you don't have to worry about autohotkey running and the script running then yeah, KeyTweaker.

User avatar
off

23 Apr 2012, 14:07

Yes, sorry for the "defend ahk's honour" move there; wanted to show how easy and versatile it was.
Remap in registry (i.e. how windows even reads the board in the first place) is more sturdy for sure; no resources wasted 'catching' keystrokes and replacing the scancodes on the fly, will work 100% just like normal. Theoretically.

re: ahk, there's just one thing you need running, the script just gets interpreted by ahk; like text opens in notepad.

Post Reply

Return to “Workshop”