dcsimg

Search:

Type: Posts; User: AccadaccA

Search: Search took 0.01 seconds.

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

    I should also mention, that although I have taken your extra advice on board and may take that path in future projects.
    The label is invisible to the user and only used for the lblMEvent_Change...
  2. Re: Resolved: When Ascii and KeyCode can't distinguish left from right, then what?

    Thanks again Elroy.
    I appreciate you taking this further with your suggestion but it is only going to be used as key binding for a game.
    So if the user has fat fingers that press several keys at...
  3. Re: Resolved: When Ascii and KeyCode can't distinguish left from right, then what?

    Thanks Elroy, it's all good.
    I just changed the KeyDown event to suit my needs..

    Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    If ShiftLeftDown = True Then lblMEvent.Caption...
  4. Re: When Ascii and KeyCode can't distinguish left from right, then what?

    Spot on, Steve. That was it.
    Cheers buddy.
  5. Re: When Ascii and KeyCode can't distinguish left from right, then what?

    Thanks for testing it westconn1.
    So it's not just me being insane after all. Who would have guessed? lol
  6. Re: When Ascii and KeyCode can't distinguish left from right, then what?

    Sorry, I'm unsure if I follow what you're asking as I copy and pasted the exact code Elroy did.

    Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    Debug.Print "-----------------"...
  7. Re: When Ascii and KeyCode can't distinguish left from right, then what?

    Hmm, I bought a brand new keyboard and the above code still isn't doing as I'm expecting.
    I created a new form with just the code Elroy posted.

    I pressed Left Shift and it wrote "Right Alt Down:...
  8. Re: When Ascii and KeyCode can't distinguish left from right, then what?

    Thanks Elroy,
    That looks promising.
    I'm overdue for a new keyboard as my shift keys tend to stick. lol Timing. I almost bought a new keyboard yesterday.

    I'll buy the keyboard when the shops open...
  9. Re: When Ascii and KeyCode can't distinguish left from right, then what?

    Thanks for your reply DEXWERX but I'm getting "Right Shift" for both shift keys. :(
  10. Resolved: When Ascii and KeyCode can't distinguish left from right, then what?

    G'day guys.
    My app relies on key events however neither Ascii nor KeyCode support the distinction of left & right with the "Shift", "Ctrl", "Alt" or "Win" keys.
    For example : Left Shift, Right...
Results 1 to 10 of 10



Featured


Click Here to Expand Forum to Full Width