Jump to a center column

Help with writing and playing macros

Jump to a center column

Postby grey_owl » Tue Sep 21, 2004 3:06 pm

This must be a a very simple thing I am missing. In a macro you can jump to a line, how do you jump to a column without putting in 150 right arrow keys?

Thank You,

Grey Owl
User avatar
grey_owl
Newbie
 
Posts: 1
Joined: Mon Sep 20, 2004 11:00 pm

Re: Jump to a center column

Postby Mofi » Wed Sep 22, 2004 2:32 am

There is unfortunately no GotoColumn command yet. You have to use 150 key right arrow or use a loop:

Loop
IfColNum 150
ExitLoop
Else
IfEof
ExitLoop
EndIf
EndIf
Key RIGHT ARROW
EndLoop

The IfEof is for avoiding an endless loop, if no line from the actual cursor position to the end of file has 150 characters.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4042
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Macros