About simulated keydown

BlitzMax Forums/BlitzMax Programming/About simulated keydown

-Phoenix-(Posted 2011) [#1]
I would like to simulate a keyboard event on a program however, that program has a protection against virtual keyboard input

I know that there is some way of bypassing that protection because when you use windows on screen keyboard the program accepts it, but when I use keybd_event the program ignores it, any other program such as notepad, firefox etc accept my keybd_event input, but that program ignores it

So I wonder if anyone has an alternative or idea how I could make it work still?

Update : I bypassed it by making my program type on the on screen keyboard to pass the input to the software, inconvienient but works.

Still open for suggestions how to improve this


Update 2 : When I start my program I can for like 2-3 seconds use virtual key inputs directly into the software, and sometimes, like after restarting the program 10-20 times, it will work permanently to give virtual input as if there was no protection, why? Any ideas how to make it work without restarting 20 time?

Last edited 2011