Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .