Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 4 down vote accepted

This should work:

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

2
{Left}{Up}
)

In action:

enter image description here

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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