1. Controling DOS Apps

Is it possible to control a DOS app, i.e., sending it keystrokes, i.e.,
simulate user typing keys with Euphoria. . .?

And, is it possible for a Euphoria program to actually do a text search of a
text screen already running?

TSR Land?

new topic     » topic index » view message » categorize

2. Re: Controling DOS Apps

On 22 Jul 2001, at 2:26, jjnick at cvn.com wrote:



> 
> Is it possible to control a DOS app, i.e., sending it keystrokes, i.e.,
> simulate user typing keys with Euphoria. . .?

Yeas, TSR, using BIOS calls (msdos isn't reintrant), or use DRDOS. You 
can stuff the keys into the keybd buffer, and then tell the other program you 
did so with the buffer_count byte.

> And, is it possible for a Euphoria program to actually do a text search of a
> text screen already running?

Yes, look in the screen buffer,, C000-?. The buffer location, size, format, etc 
can be changed tho. I haven't thought of this stuff in ages.

Kat

new topic     » goto parent     » topic index » view message » categorize

3. Re: Controling DOS Apps

On Sunday 22 July 2001 11:47, sephiroth _ wrote:

> 0xc000 is for BIOS extension you can add yourself, 0xb800 if for color,
> and 0xb000 is for mono. i think 0xa000 is used for some graphics modes

I think you can extract the contents of a standard 80x25 vga display with 
peek({#B800, 4000}) -- 80x25 = 2000 characters, but each character 
also comes with an extra byte which stores the color attributes. 
To extract just the text, use a loop by 2.

You could probably do the same thing with save_text_image()

Regards,
Irv

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu