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 wrote a AutoHotKey script to print out these four lines:

==quote
web

12

but I want the cursor to be blinking between the line "web" and the line "12", I would think I could include the word "Cursor" like this:

::qqu::==quote{Enter}{Cursor}{Enter}web{Enter}12

but it just leaves the cursor at the end of the "12".

How can I define the ending cursor position?

share|improve this question
    
Send the up arrow? –  Iuvat Oct 22 '09 at 22:34

2 Answers 2

up vote 4 down vote accepted

Try adding {Left}{Left}{Left} after everything. This should move cursor back to proper location.

share|improve this answer
    
ok, by trial and error and I get the cursor to move up to the place I want, but e.g. putting {Up}{Up}{Left}{Left} in at the end moves the cursor into the right line but it is at the second cursor (won't move left), and in NotePad it goes up into the first line and splits up the word "quote" between the "u" and the "o", so this method seems to be pretty hit and miss, and when I get it write, if I add a paragraph of text, I need to add dozens of {left}, there must be a way just to tell it where to put the cursor when its done, isn't there? –  Edward Tanguay Oct 22 '09 at 22:45
    
I haven't used this facility of AutoHotkey, but looking at the other keys you guys are showing, I'd try {Home} to get to the left margin, then {Up} to the row I want. –  JMD Oct 22 '09 at 22:56
    
hmmm, for such a well-thought out tool I would think it would have something more absolute-positioning than this turtle-graphic approach to getting the cursor where you want after the script finishes –  Edward Tanguay Oct 22 '09 at 23:12

Just a note:

Send {Left}{Left}{Left}

is the equivalent of...

Send {Left 3}

share|improve this answer
1  
Very helpful for me :) thanks +1 –  SubniC Feb 21 '11 at 11:40

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.