I am "Hooking the keyboard" and it seems that I need to give the hooking
process some slack time so my code does not get ahead of the hooking process.
At least the pause is helping. Thanks!
Maybe you can create a class with a property you can set.
Make a boolean property, set it to false in the begining, and dont start
accepting any info from the keyboard until the paramter is set to true -
once you can confirm the hook is complete?
I am "Hooking the keyboard" and it seems that I need to give the hooking
process some slack time so my code does not get ahead of the hooking process.
At least the pause is helping. Thanks!
It's helping, but it's not guaranteed to work. Just because you are
pausing your thread for a while, doesn't mean that the thread that is
doing the hooking is guaranteed to run during that time. If the computer
is busy doing something else, the hooking process might need more time
to complete.
I agree with Miro that you should try to determine when the process
actually is complete, instead of just waiting for a while and hoping
that it is enough.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.