| Re: [aus-dotnet] simulating a keypress |
- From: Aaron Cripps
- Subject: Re: [aus-dotnet] simulating a keypress
- Date: Wed, 02 Mar 2005 14:07:14 +1100
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Jarrod, I've not used sendkeys before so this may be totally wrong but maybe System.Windows.Forms.Keys enumeration? Keys.Numpad1 Keys.Numpad2 etc. Aaron On Wed, 2 Mar 2005 14:00:52 +1000, Jarrod Oakley <jarrod@xxxxxxxxxxxx> wrote: > Cheers, > > I've just got one more problem though... Using sendKeys I need to send > numbers from the numpad, not the numbers across the top of the keyboard. > I've searched far and wide, but no one seems to have an answer. > > Any ideas? > > Jarrod > > > ----- Original Message ----- > From: Roger Curtain > To: dotnet@xxxxxxxxxxx > Sent: Tuesday, March 01, 2005 1:25 PM > Subject: Re: [aus-dotnet] simulating a keypress > > 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 _________________ You are a part of the Australian "dotnet" mailing list. To unsubscribe send "unsubscribe dotnet" or to re-subscribe send "subscribe dotnet Your Name" in the body of the email to: imailsrv@xxxxxxxxxxx List managed by: http://www.stanski.com
(Click here for more information on the aus-dotnet mailling list)
- Follow-Ups:
- Re: [aus-dotnet] simulating a keypress, Jarrod Oakley
- References:
- [aus-dotnet] simulating a keypress, Jarrod Oakley
- Re: [aus-dotnet] simulating a keypress, Roger Curtain
- Re: [aus-dotnet] simulating a keypress, Jarrod Oakley
- Prev by Date: Re: [aus-dotnet] simulating a keypress
- Next by Date: [aus-dotnet] OT - Scanned Document Storage Systems
- Previous by thread: Re: [aus-dotnet] simulating a keypress
- Next by thread: Re: [aus-dotnet] simulating a keypress
- Index(es):
