I want this AutoHotKey script:

::aaim::
(
==aim
2010

2
){Left}{Up}

to output this:

==aim
2010
|
2

but it outputs this instead:

==aim
2010

2{Left}{Up} }|

(where "|" is the cursor)

How can I get it to print the first version?

link|improve this question

feedback

1 Answer

up vote 4 down vote accepted

This should work:

:r0*:aaim::
(
==aim
2010

2
{Left}{Up}
)

In action:

enter image description here

link|improve this answer
perfect, what does the "r0*" actually mean? – Edward Tanguay Oct 23 '09 at 21:24
1  
+1 for the convincing video, what tool did you use to record the .gif? – Edward Tanguay Oct 23 '09 at 21:25
r0 stops the continuation () from using default raw mode to send text. The asterisk (*) triggers the key and it sends the text as soon as you press the m, so pressing space or enter afterwards isn't necessary (and would only make things harder since I'd have to add another {Left}). – John T Oct 24 '09 at 3:04
animation was done in camtasia – John T Oct 24 '09 at 4:01
1  
+1 for the repeating gif – Phoshi Oct 24 '09 at 16:33
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.