1,720 pts.
 Cursor position in a macro
Does anyone know how to make the cursor go to the first position of the command line in a macro? Voodoo

Software/Hardware used:
ASKED: July 28, 2009  7:20 PM
UPDATED: August 2, 2009  2:01 AM

Answer Wiki:
This is usually either just a CR with no Line Feed, or a <ctrl>A which should do the same. Or you may be right and it is Voodoo ;-)
Last Wiki Answer Submitted:  July 28, 2009  10:12 pm  by  BlankReg   12,265 pts.
All Answer Wiki Contributors:  BlankReg   12,265 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

I was hoping to add this to macros so that the cursor would jump down to the command line before the rest of the macro kicks off. It would be handy in screens like WRKACTJOB.

 1,720 pts.

 

I wrote a macro for when compiling programs to add options to the command line from PDM and you will also need to add a Field Exit to the macro so that it clears the data after the ending string. All you need to do is press the F9 key and this bring up the last command you entered and place the cursor at the first position. Since I was adding options to my macro I just typed them and then pressed Field Exit to clear any remaining characters from a prior command.

Try this and see if it works for you.

 1,145 pts.

 

You can record macros in Vb or in ‘keystroke’ format – use the keystroke recorder and just step through whatever you want to do, including cursor movement.

Works a treat

 5,505 pts.

 

I think Hafwhit’s got it. The trouble is you don’t always know where the cursor is going to be.
The F9 seems to put you there from where ever the cursor is at. Funny, I use F9 a bazillion times a day and it never occured to me.

Thanks Hafwhit, that was the Voodoo I needed.

 1,720 pts.