TIP: Click on subject to list as thread! ANSI
echo: delphi
to: ALL
from: BART BROERSMA
date: 1997-05-06 20:15:00
subject: Sending Keys

Hi all,
Problem 1: I need to determine if a given DOS program is running (only know 
the .exe name, lets say wp.exe (while in fact it is not wp...)) and get a 
handle to it.
Problem 2: I need to send keys to the above mentioned DOS program to 
simulate keystrokes. (Althoug the program is a DOS program, simply stuffing 
the keyboard buffer won't do in this case.) All this to make the program 
automatically perform a task, since it doesn't have features like macro's 
(Yes, the program sucks, but it holds an entire patient administration at 
my work).
All programs must run on a W95 and/or NT platform (at work).
I do my programming in D1 (W3.10) (at home, no W95 yet).
Anyone got some solutions.
Thanx in advance,
Bart.
--------------------------------------
Bart Broersma
broersma@knmg.nl
 * Wave Rider 1.20 [NR] *
... UNREGISTERED EVALUATION COPY
--- Wave Rider v1.20
---------------
* Origin: Aargh! BBS Amsterdam (2:280/606)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.