Is there any way to access text on the screen if it's within a command (DOS) session? We have a DOS application that I need to keep going through a series of keystrokes to process data until there is no more data to process. I was thinking I have two basic options -- either loop until a field is empty, or go until I get an error message on the screen. Both methods require that I can read from the DOS window (either static text or data in an input field).
I tried using GetWindowText, but it doesn't recognize any text in the dos session. I also tried selecting the text and copying it to the clipboard, but it won't copy text from the dos session to the clipboard, so no luck there.
Help!
Accessing screen data in DOS session
Moderators: Dorian (MJT support), JRL
Another solution (may not work for all)
That method didn't work for my situation, but I suspect it has a lot to do with the particular application that you're working with, so I'm including another solution that did work for me, and so might be another option for others to try.
I just moved the mouse to the start of the text, doubleclicked to select the text and then pressed the right mouse button to copy it to the clipboard (!). (Not sure why clicking the right mouse button worked, but it did).
MouseMoveRel>500,130
LDblClick
RClick
GetClipBoard>txtField
I just moved the mouse to the start of the text, doubleclicked to select the text and then pressed the right mouse button to copy it to the clipboard (!). (Not sure why clicking the right mouse button worked, but it did).
MouseMoveRel>500,130
LDblClick
RClick
GetClipBoard>txtField
Hi,
That would be because you have Quick Edit mode selected in Edit Options under Properties for cmd.exe
Very useful.
That would be because you have Quick Edit mode selected in Edit Options under Properties for cmd.exe
Very useful.
MJT Net Support
[email protected]
[email protected]