Content here is by:
Michael Still
mikal@stillhq.com
All my Open Source projects
Extracted view of CVS
Home Site map
|
See recent comments. RSS feed of all comments.
ImageMagick book
MythTV book
|
 |
|
 |
|
| Re: [aus-dotnet] simulating a keypress |
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- From: Roger Curtain
- Subject: Re: [aus-dotnet] simulating a keypress
- Date: Tue, 01 Mar 2005 14:09:37 +1100
Jarrod, I have used several methods in the
past.
1. Set the focus to the
application in question and use SendKeys.
2. If the application has a menu
shortcut for the action use that by simulating a menu click.
3. If a button on the
application also issues the command then press that using
code.
ALL THE ABOVE REQUIRE WIN32 api WORK
The trouble is the keyboard is
global and the keystrokes go to the app which has the focus, unless you have
installed a global keyboard hook and
intercepted the keystrokes. Not useful in this case.
Regards Roger
----- Original Message -----
From:
Jarrod
Oakley
To: dotnet@xxxxxxxxxxx
Sent: Tuesday, March 01, 2005 1:04
PM
Subject: [aus-dotnet] simulating a
keypress
Hi,
I need to simulate a keypress event from a .net
application to another windows based application (it happens to be a phone
emulator). Is there a way of directing a sendKeys.send() event to a
specified window that simulates a keypress from within that
applciation?
Thanks,
Jarrod
|
(Click here for more information on the aus-dotnet mailling list)
|
|
|
|
|
|
|
|