Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello,

I am using journal playback to emulate mouse and keyboard input. The problem is that sometimes playback getting stuck for up to 30 seconds in different places. If I move mouse, playback continues. This problem was already described in internet at social.msdn.microsoft.com and answer was:

"That said, sounds like a known issue where the internal timer which handles the delay wakes the wrong thread so the synthesized message isn't detected. Generating a new message by nudging the mouse will wake the thread and allow all messages to be pumped. I believe this was fixed for Windows 7.

If this is the same issue, the only solution with the journal hook is not to return a delay from HC_GETNEXT."

My question is how to make delays then? This should not be a thread.sleep(10) in callback function because this way an application where I send commands freezes for the duration of a playback.

Thank you.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900