Hi,

For a touchscreen application I want to emulate keyboard input.
In certain situations the user is asked to enter a zip code or a date which
can be done by a Keypad dialog I created.

This is pretty straightforward: A dialog with 10 buttons (numbers from 0 -
9). When they press a button, the value is appended to the value in a form:

Get Value of oForm to sValue
Set Value of oForm to (sValue + sButtonValue)

This however doesn't work when masks are being used.
So instead, I want to send keystrokes to the form. When the user presses for
instance number 7, I want to send a keystroke '7' to a form.

In the User contributed newsgroup I found a piece of code made by Sergey,
but this is not working in WinXP.
He mentions another function that should be used (SendInput) but I don't
know how to deal with that.

Any suggestions?

Thanks.

--

Pieter