Page 1 of 1

cursor position

Posted: Wed Jun 21, 2006 12:40 pm
by djones
Does anyone know how to set up text pad to open with the cursor starting at the next position it should begin with versus having to open the hit Ctrl End?
Thanks

Posted: Wed Jun 21, 2006 1:35 pm
by bveldkamp
I think this should go in the "General" forum, but anyway, you can use command line parameters to give an initial cursor position, for instance:

Code: Select all

Textpad.exe readme.txt(10,5)
opens readme.txt and positions the cursor at the fifth character on line 10.
If you want to position the cursor at the end of the file, you could use a large linenumber:

Code: Select all

Textpad.exe readme.txt(100000)
(Character position is optional, so I left it out here).

I don't think there's a way to have TP always open at the end of the file, but it should be possible to create a shortcut (with parameters) and place it in the Send To folder.

Edit:
It seems you can't do this using a shortcut, but you can create a batchfile in the Send To folder which contains:

Code: Select all

start "TextPad" "C:\Program Files\TextPad 4\TextPad.exe" %1(100000)