oh you're making something like windows "on screen keyboard" program?
it should be possible sending it with sendmessage() to the receiving applications handle.