I've recently brought a laptop which hasn't numeric pad nor the possibility to activate numblock, etc.
I've seen Autohotkey as a possible solution, but I couldn't find script for this job.
So I've written a script code working in this way: while pressing LALt, you can insert any number you want, and then it's converted in ascii.
This code now works, but there's some issues:
1. It receives any input, even though I'd like to strict it only on numbers.
2. Even if the LALt is not pressed, it doesn't send the converted number right away. You have to press another key and it will be sent.
I'd like to fix it and change it so when you don't hold LAlt anymore it will automatically send the code. The problem is I'm new to this language and I'm not really sure how to implement it.
Every bit of help is appreciated ^^
Code: Select all
~LAlt::
code:=""
while GetKeyState("LAlt")
{
Input, key, L1 M
code:=code . key
Sleep, 50
}
Send, % Chr(code)