Moving the cursor?

Posted by Phydeaux on Sun 11 Dec 2005 01:02 PM — 4 posts, 17,056 views.

USA #0
Is there a way to move the cursor to the very beginning of the command window? All the way to the left, and all the way up. I've looked and looked, but I can't find anything.
Australia Forum Administrator #1
Press Alt+Home to move the cursor to the start of the command window, and Alt+End to move to the end of it.

I must admit that was undocumented. I have changed the next version to document this behaviour.
USA #2
How would I do that in a script, though? That's the main thing I was looking for, and I'm not seeing how to go about that.
Australia Forum Administrator #3
In a script, eh? You didn't mention that.

See:

http://www.gammon.com.au/scripts/doc.php?function=DoCommand


This script function lets you queue up virtually any command you can do from the keyboard or menu item. In your case you want:


DoCommand "CommandHome"


Note the word "queue" - the command is not executed immediately, but queued up for when the script ends. Read the web page above for more details.