470,593 Members | 2,387 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,593 developers. It's quick & easy.

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.
Nov 22 '05 #1
3 1581
Jimif,

In my opinion can you use remoting.

http://msdn.microsoft.com/library/de...oremoting.aspI hope this helps?Cor"jimif_fr" <ji******@discussions.microsoft.com>> 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 forthis> purpose and is a not aware of the simulation.

Nov 22 '05 #2
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:ji******@discussions.microsoft.com]
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.

Nov 22 '05 #3
"jimif_fr" <ji******@discussions.microsoft.com> wrote in
news:82**********************************@microsof t.com...
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
Nov 22 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by lawrence | last post: by
4 posts views Thread by -z- | last post: by
1 post views Thread by Barb | last post: by
3 posts views Thread by jimif_fr | last post: by
9 posts views Thread by skearney | last post: by
13 posts views Thread by Steve Jorgensen | last post: by
7 posts views Thread by Don Riesbeck Jr. | last post: by
331 posts views Thread by Xah Lee | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.