View Single Post
 
Old 07-15-2013, 06:34 PM
ephestion ephestion is offline
Newcomer
 
Join Date: Aug 2006
Posts: 10
Default

Thanks. You confirmed that it should work.

I had placed a similar code since posting and it was still bugged. When a user kept pressing the arrow keys repeatedly and fast. So I added this:

Code:
If Not Busy And iDirection > 0 Then

When my movement is finished it would set Direction to 0. But for some weird *** reason despite adding the busy argument to key up and down event:

Code:
If Not Busy Then
            Select Case e.KeyCode
                Case Keys.Up
Which should have blocked all keystrokes while busy the stupid thing would fire the Busy Event again.

Thanks it was frustrating because I wasn't sure if you could lock the keys without an API lock. But this seems good enough and is working.
Reply With Quote