1
votes

I want to have a shortcut, RAlt+a, that simply sends the right angle quote, «. It is #174 in this table http://www.theasciicode.com.ar/ascii-codes-table/ascii-codes-174.html and can be inputted by using Alt+174 when the numlock is on.

I have tried things like

RAlt & a::

Send, {U+0174}

return

and

RAlt & a::

Send, {Asc 0174}

return

but can't get it to work. If there isn't some real easy way, my next plan of action is to determine if Numlock is on, than just input the four keys I need, then turn numlock to it's original state. However, this seems overly complicated.

Thanks in advance.

3

3 Answers

1
votes

Hans,

And this....

RAlt & a::Send, {ALTDOWN}{Numpad1}{Numpad7}{Numpad4}{ALTUP}

Met vriendelijke groet,

Mit freundlichen Grüßen,

Robert Ilbrink

0
votes

How about:

RAlt & a::Send, «

Works for me..

Regards,

Robert Ilbrink

0
votes
RAlt & a::
theCharacter := chr(174)
Send, %theCharacter%
return

This works great for me... However, depending on your computer, you may have issues with the character being sent before your Alt key is released.

Also, you may want to look in to what version of AHK you are running.