By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,679 Members | 2,763 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,679 IT Pros & Developers. It's quick & easy.

simulating keyboard

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
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

P: n/a
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

P: n/a
"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.