simulating keyboard

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How is it possible to simulate the keyboard entries (and the mouse events) of
one program, from another program. The first program is not written for this
purpose and is a not aware of the simulation.
 
I believe you will need to look to the win32 api to hook into events.
Check out this article:
http://www.codeproject.com/csharp/NetWin32Hooks.asp

Andrew McNerlin

-----Original Message-----
From: jimif_fr [mailto:[email protected]]
Posted At: 14 December 2004 08:01
Posted To: microsoft.public.dotnet.general
Conversation: simulating keyboard
Subject: simulating keyboard

How is it possible to simulate the keyboard entries (and the mouse
events) of
one program, from another program. The first program is not written for
this
purpose and is a not aware of the simulation.
 
jimif_fr said:
How is it possible to simulate the keyboard entries (and the mouse events)
of
one program, from another program. The first program is not written for
this
purpose and is a not aware of the simulation.

Did you try the SendKeys class? If not, P/Invoking SendInput (Windows API)
should do the job. Maybe you can find a managed wrapper on the net.

Niki
 
Back
Top