I'm quite new on this. I would really appreciate if some of you great minds could help me with these..
The problem: I have a laptop without a keypad, and would like to remap the keyboard letter to the keypad numbers.
I'm looking to achieve this 2 features.
1. When I press and hold the Fn button + "J", I get a "4" as result. But I've been looking for the Fn key to do it, and I think it's not possible. I've checked the documentation about the Special keys "mysterykey" section, without success.. so for alternative I use the Left Alt key. If someone knows how to get it working with the Fn, that would be great
2. When I press the "Pause" button, to act like a NumLock ON, so after press and release it, and then I press "J" I would get "4" as result and when I press again the "Pause" and after that the "J" I would get as a result "J"
For now I have this and it works:
1. Works with the Left Alt key pressed. Found no way to get it work with the Fn key.
Code: Select all
LAlt & SPACE::Send, {Numpad0}
LAlt & M::Send, {Numpad1}
LAlt & ,::Send, {Numpad2}
LAlt & .::Send, {Numpad3}
LAlt & J::Send, {Numpad4}
LAlt & K::Send, {Numpad5}
LAlt & L::Send, {Numpad6}
LAlt & U::Send, {Numpad7}
LAlt & I::Send, {Numpad8}
LAlt & O::Send, {Numpad9}
LAlt & -::send, {NumpadDot}
LAlt & 7::send, {NumpadDiv}
LAlt & 8::send, `%
LAlt & 9::send, {NumpadMult}
LAlt & 0::send, =
LAlt & P::send, {NumpadSub}
LAlt & sc027::send, {NumpadAdd}
return
Code: Select all
#If, GetKeyState("CapsLock","T")
SPACE::Send, {Numpad0}
M::Send, {Numpad1}
,::Send, {Numpad2}
.::Send, {Numpad3}
J::Send, {Numpad4}
K::Send, {Numpad5}
L::Send, {Numpad6}
U::Send, {Numpad7}
I::Send, {Numpad8}
O::Send, {Numpad9}
-::send, {NumpadDot}
7::send, {NumpadDiv}
8::send, `%
9::send, {NumpadMult}
0::send, =
P::send, {NumpadSub}
sc027::send, {NumpadAdd}
return
How can I combine this two codes in one script? Separately they work, in two differente scripts, but it would be great to have all, wrapped in one script.
BTW I've been looking around, and the possibilities of the AHK are amazing! Great program!
Thanks a lot in advance for any hint or help