How do i put some letter when i press two keys? Topic is solved
How do i put some letter when i press two keys?
I want to put the letter "ñ" when i press ~ + n, because my keyboard is english-type.
Re: How do i put some letter when i press two keys?
On my keyboard, you need to press Shift with the ` get to get a ~ character, so I would do this, which works for me:
Code: Select all
` & n::Send, ñ
Re: How do i put some letter when i press two keys?
i want something like shift + ~ + n
Re: How do i put some letter when i press two keys?
So you're saying you want a three-key combination, not two. That's a different story. AHK generally doesn't support that, but there are some threads out there with some workarounds.
Re: How do i put some letter when i press two keys?
Hi.
Can you suggest making use of a HotString? (I think it's perfect for this case). When you type n twice "nn" and the space bar will be replaced by a ñ.
Can you suggest making use of a HotString? (I think it's perfect for this case). When you type n twice "nn" and the space bar will be replaced by a ñ.
Code: Select all
::nn::ñ
Re: How do i put some letter when i press two keys? Topic is solved
Good idea. But I would suggest the following because not only is it closer to the OP's key combination, it can be in the middle of the word (can follow another letter) and not require a space or any end character (which allows another letter to immediately follow it). So typing Pe~na will produce Peña.
Code: Select all
:*?:~n::ñ
-
- Posts: 7
- Joined: 28 Jul 2021, 12:26
Re: How do i put some letter when i press two keys?
The documentation page for Hotkeys gives an example of how to create a three-key hotkey, but notes the results "may be inconsistent".
The following works for me:
The following works for me:
Code: Select all
#If Getkeystate("Shift","P")
` & n::Send, ñ
#If
Re: How do i put some letter when i press two keys?
actually the boiler response worked perfectly, thanks