Hello, first sorry for my bad english
So, I'm a new user of autohotkey and I need some help I need to replace numbers by alphabet like : when I type "1" it replace by "a". I tried to use ::1::a it works but only with space
I want for exemple to type 1 then 2 without space between them > ab and it replace by 12 not a b > 1 2
Number substitute
Re: Number substitute
Check out the difference between a HotKey and HotStrings !
... and welcome 2 the wonderful world of AHK scripting
Code: Select all
1::Send a ; this is a hotkey
::1::This is a hotstring ; AKA an auto-replace using a trailing space by default
Re: Number substitute
Thank you !
Re: Number substitute
Ok I tried it, but it replace only letters by other letters;
Here is my script :
F11::Suspend
a::Send test
0::Send Z
1::Send A
2::Send A
3::Send A
4::Send A
5::Send B
6::Send B
7::Send B
8::Send B
9::Send C
Only "a" key get substitued
Here is my script :
F11::Suspend
a::Send test
0::Send Z
1::Send A
2::Send A
3::Send A
4::Send A
5::Send B
6::Send B
7::Send B
8::Send B
9::Send C
Only "a" key get substitued
Re: Number substitute
Your code works. Or, are you using the numeric keypad (numpad) of your keyboard? Then use/add the corresponding key names: https://autohotkey.com/docs/KeyList.htm#Numpad_keys --> example: Numpad1::Send Z
Re: Number substitute
Yes I was using Numpad, now it's working thank you all
Who is online
Users browsing this forum: No registered users and 378 guests