Macro for Dos program

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Macca
Newbie
Posts: 8
Joined: Mon Mar 22, 2004 6:32 am
Location: Tasmania

Macro for Dos program

Post by Macca » Fri Mar 26, 2004 5:17 am

Some time ago a guest, Rick911, posted the following query & a comment that he had solved the problem with another application but no details.

I have the same problem and am desperately looking for a solution. Mike.

Can anyone tell me how to use the arrow keys to move the cursor in a DOS program such as edit.com?

None of the following will move the cursor on my machine:
Press Left
Press Up
Press Right
Press Down

I know it is getting to the correct window, because the following works:
Press Enter
Press Tab
Press Backspace

I have a (nonmaximized) "DOS-Prompt - EDIT" window open at runtime. There are a few blank lines above and below where the cursor is, and I can move the cursor freely with the arrow keys while in edit.

Script:

let>SK_DELAY=10
SetFocus>MS-DOS Prompt - EDIT
Let>WW_TIMEOUT=5
CapsOff
Press Down

Like I say, if i replace "Press Down" with "Press Enter", the enter happens.

Lumumba

Post by Lumumba » Fri Mar 26, 2004 9:29 pm

While this seems to be a challenge, I asked myself: Is it necessary to use edit.com to edit a file? I guess NO. Parsing a file could be done without any user interface. To change a files content as well.

Stepping from the left to the right, or up and down (unless in a gym) won't make any sense. So I'd ask you: "What task d'ya really want to accomplish" ?

Macca
Newbie
Posts: 8
Joined: Mon Mar 22, 2004 6:32 am
Location: Tasmania

Post by Macca » Fri Mar 26, 2004 10:46 pm

Lumumba

Thanks for the interest.
In this case I am using the edit.com file as an example. What I want to do is associated with a commercial dos program where I need to move the cursor as described in the example.

I am a beginner, and your comment even on parsing goes over my head.

Cheers

Mike.

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts