I am a first-time user AutoHotKey (AHK), trying to get it to give me a shortcut for a text string (my email address) that I have to enter very frequently in all sorts of contexts.[ ] The shortcut I wanted to use was Ctrl-Shift-R, and I expected this would be an easy task requiring only the single line of AHK "code" that follows:
[ ][ ][ ][ ][tt]^+R:onaldDuck_at_Disney.fun[/tt]
However this (and several close variants) never even got to first base, and gave various unhelpful error messages when I tried to "load" them (using AHK version 2.0.10.0 as downloaded last night).
The documentation for AHK overwhelmed and bamboozled me, concentrating on all the wonderfully complex things it can do, and avoiding the ultra-simple.[ ] Hours of googling didn't help very much.[ ] I eventually got the following script to load without errors.[ ] The first of the two approaches does actually work, while the second one does absolutely nothing.
I can live with this if necessary, but I would much prefer to be able to invoke my text string with the single "function key" of Ctrl-Shift-R (^+R in AHK-ese) which does not work using the method above.
Is anyone in this forum sufficiently conversant with AHK to point me in the right direction?
[sub][ ]—————————————————————————————————[/sub]
[sup]Engineering mathematician/analyst.[ ] See my profile for more details.[/sup]
[ ][ ][ ][ ][tt]^+R:onaldDuck_at_Disney.fun[/tt]
However this (and several close variants) never even got to first base, and gave various unhelpful error messages when I tried to "load" them (using AHK version 2.0.10.0 as downloaded last night).
The documentation for AHK overwhelmed and bamboozled me, concentrating on all the wonderfully complex things it can do, and avoiding the ultra-simple.[ ] Hours of googling didn't help very much.[ ] I eventually got the following script to load without errors.[ ] The first of the two approaches does actually work, while the second one does absolutely nothing.
Code:
#Requires AutoHotkey v2
#SingleInstance Force
::RR::Hello World via "double-R" ;;; RR or rr or rR work, but are not ideal for me.
::^+R::Hello World via Ctrl-Shift-R ;;; Does absolutely nothing.
I can live with this if necessary, but I would much prefer to be able to invoke my text string with the single "function key" of Ctrl-Shift-R (^+R in AHK-ese) which does not work using the method above.
Is anyone in this forum sufficiently conversant with AHK to point me in the right direction?
[sub][ ]—————————————————————————————————[/sub]
[sup]Engineering mathematician/analyst.[ ] See my profile for more details.[/sup]