| Some Moron (5) | |||
|
I've made successful progress since my last SendInput related thread but now I have a new issue: I'd like it to simulate a key being held down, but it's not working as explained in Microsoft's API. As far as I can tell, the correct events are being sent here - a keycode is being sent with no flags when setState(true) is called (and the key wasn't previously pressed), and the same keycode is later sent with KEYEVENTF_KEYUP when the opposite occurs. I would expect this to simulate a key being held down, but it doesn't happen; it registers a single stroke and nothing more.
My code's logic follows that of examples I've seen that are purported to work properly. How can I fix this? | |||
|
|
|||