Re: Simulate User Input
From: Alex Feinman [MVP] (public_news_at_alexfeinman.com)
Date: 10/28/04
- Next message: Alexander Aristov: "Re: Installing 2003 SDK Causes Buffer Overrun"
- Previous message: Andrej: "Simulate User Input"
- In reply to: Andrej: "Simulate User Input"
- Next in thread: Andrej: "Re: Simulate User Input"
- Reply: Andrej: "Re: Simulate User Input"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 28 Oct 2004 16:44:27 -0700
I'm sure the problem of simulating the stylus input can be helped (I do it
it slightly differently, see
http://www.alexfeinman.com/download.asp?doc=IMSwitch.zip for a sample that
turns on numeric mode on the soft keyboard), but I think you are approaching
it in a wrong way.
If all you need is to drive calc.exe, use keyboard input - by sending
WM_KEYDOWN and WM_KEYUP (or maybe even WM_CHAR) you can do all you need with
the calc
-- Alex Feinman --- Visit http://www.opennetcf.org "Andrej" <Andrej@discussions.microsoft.com> wrote in message news:986A5B7D-0D15-4D89-9231-61803A4BC77C@microsoft.com... > Hi there, > I'm writing a small app for the PocketPC 2003 using C#. My app should > simply > open the Calculator and simulate some key presses (of course im using > P/Invoke). Opening the calc.exe was no problem, but I can't get the > 'magic' > input work correctly. By using 'mouse_event' for simulating user input, > the > upper left 'Start' button is being pressed (seems strange 'cause I thing > the > handle to the Calculator is O.K.) and using 'PostMessage' and > 'SendMessage' > have no effect at all. > Can someone help me with this problem please?
- Next message: Alexander Aristov: "Re: Installing 2003 SDK Causes Buffer Overrun"
- Previous message: Andrej: "Simulate User Input"
- In reply to: Andrej: "Simulate User Input"
- Next in thread: Andrej: "Re: Simulate User Input"
- Reply: Andrej: "Re: Simulate User Input"
- Messages sorted by: [ date ] [ thread ]