key characters - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

key characters

odan16odan16 Posts: 40Member
Does anyone know the number for the left and right keys on the keyboard, e.g #57.

Comments

  • TolkienTolkien Posts: 47Member
    : Does anyone know the number for the left and right keys on the keyboard, e.g #57.
    :

    Go and look up either:
    http://www.asciitable.com/
    http://download.desk.ne.jp/ (if your japanese)


    OR

    http://www.google.ca/search?q=ascii&ie=ISO-8859-1&hl=en&meta=
    And find one you like.

  • TolkienTolkien Posts: 47Member
    Ive also been looking for them also, I found them and now im trying to work out the script for making a player move on the game...ect...
  • TolkienTolkien Posts: 47Member
    [b][red]This message was edited by Tolkien at 2003-3-10 12:18:18[/red][/b][hr]
    HERE I did it... Take it...

    Dim pressed as Boolean


    Private sub form_keydown(keycode as interger,shift as interger)
    On error GoTo out 'this to check it does not exceed limit values

    if Keycode = vbKeyup or keycode = vbkeydown or keycode = vbkeyleft or keycode = vbkeycode
    pressed = true
    Dimluku as long
    select case keycode

    case vbkeydown
    do while pressed
    luku = luku +1
    if luku / 10 CLng(Luku/10) then upsc.value = upsc.value +1 'slower
    doevents
    Loop

    case vbkeyup
    do while pressed
    luku = luku +1
    if luku / 10 CLng(Luku/10) then upsc.value = upsc.value -1
    doevents
    Loop

    case vbkeyright
    do while pressed
    luku = luku +1
    if luku / 10 CLng(Luku/10) then upsc.value = upsc.value +1
    doevents
    Loop

    case vbkeyleft
    do while pressed
    luku = luku +1
    if luku / 10 CLng(Luku/10) then upsc.value = upsc.value -1
    doevents
    Loop
    end select

    End if
    Out:
    End sub

    private sub form_keyup(Keycode as Interger, Shift As Interger)
    pressed = false
    end sub



  • ManningManning Posts: 1,621Member
    : Does anyone know the number for the left and right keys on the keyboard, e.g #57.
    :

    This thread has some code that will let you figure out the value for any key:

    http://www.programmersheaven.com/c/MsgBoard/read.asp?Board=16&MsgID=168674&Setting=A9999F0302
Sign In or Register to comment.