I'm a programmer and I'm noob on AutoHotKey so, is there a better way to do this?:
- If I keep pressed "WindowsKey" I want a NumPad on "uio" keys (there are a lot of keys, but the example only shows 3 to be short). No matter what program I'm using.
- If Windows Calculator is active, then keys "uio" are translated to "789". If windows calculator is closed, it just send "uio" keys through.
- If Blender3D is active, I will use those keys "uio" for other purposes...
The reason is I'm introducing myself on split keyboards, dactyl ManuForm keyboard and so on. Before 3DPrinting one myself, I would like to use keyboard layers on my 104 keyboard.
Code: Select all
; NumPad with Winkey pressed
#u::
{
Send, 7
return
}
#i::
{
Send, 8
return
}
#o::
{
Send, 9
return
}
; Windows Calc
$u::
{
if WinActive("ahk_class CalcFrame")
{
Send, 7
}else {
Send, u
}
return
}
$i::
{
if WinActive("ahk_class CalcFrame")
{
Send, 8
}else {
Send, i
}
return
}
$o::
{
if WinActive("ahk_class CalcFrame")
{
Send, 9
}else {
Send, o
}
return
}
I already disabled Win+ L and Win key on windows Registry.
Any code, ideas, better coding method... are all welcome!!
Thanks in advance for your time!.