dcsimg

Search:

Type: Posts; User: Elroy

Search: Search took 0.07 seconds.

  1. Re: Resolved: When Ascii and KeyCode can't distinguish left from right, then what?

    Say AccadaccA,

    Just an FYI. The way you did it (reporting in a label's caption), you're only going to "see" the last key that's actually down in your series of "if" statements. The way I did it...
  2. Re: Resolved: When Ascii and KeyCode can't distinguish left from right, then what?

    Ahhh, AccadaccA, glad you got it sorted.

    I guess I should have put a Select Case statement in the KeyDown event, and only printed the key that was actually pressed.

    Happy Coding,
    Elroy
  3. Re: When Ascii and KeyCode can't distinguish left from right, then what?

    Here's a little sample program that shows it all.

    Just throw it into a Form1's code, and run it, and start hitting keys.



    Option Explicit
    Private Declare Function GetAsyncKeyState Lib...
Results 1 to 3 of 3



Featured


Click Here to Expand Forum to Full Width