7

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?

2 Answers2

13

Just a note:

Send {Left}{Left}{Left}

is the equivalent of...

Send {Left 3}

6

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

Josip Medved
  • 8,860
  • 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
  • 1
    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