keycode "at"

This topic contains 5 replies, has 4 voices, and was last updated by  bosh77 1 month, 3 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #16115

    bosh77
    Participant

    I have a problem.

    how can I use the at (@) key with Keyboard.KeyHit() command?

    #16116

    Jesse
    Participant

    What are you trying to do? For the QWERTY keyboard the 2 and the @ key are the same Key. KeyHit detects the key not the Character. You might be able to use KeyDown For key.LeftShift and KeyHit for Key.key2 in the same comparison for the @ key. Not sure haven’t tried it myself. I am not sure but I believe there is a getChar instruction that would be able to do that for you instead but Depends on what you are doing.

    #16141

    bosh77
    Participant

    Thanks, I solved problem

    The code I have used is:

    If Keyboard.KeyDown (Key.RightAlt) And Int (key) = 242 Then ‘key @ pressed

    unfortunately I haven’t found a GetChar statement

    #16149

    nerobot
    Participant

    @bosh77 also you can add keys filter and use KeyChar inside:

    #16150

    DruggedBunny
    Participant

    Nice one, nerobot, really useful!

    #16154

    bosh77
    Participant

    Thank You Nerobot, this is great !

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.