Help please!

  • asdf123
    11th Jul 2012 Member 0 Permalink

    what are all the key values for lua script? does anyone know?

  • boxmein
    11th Jul 2012 Former Staff 0 Permalink
    @asdf123 (View Post)
    Here are the key codes in a usable table: http://pastebin.com/dJ9eZGRU
    if you copy this table to your script, you can just use
    if event.key == Key["backspace"] then do stuff end
  • Pilihp64
    11th Jul 2012 Developer 0 Permalink

    @boxmein (View Post)

    That's a fancy table and all, but hardly any of those keys match what I get.  The best way to see the values for your keyboard (which may be different) is to add a tpt.drawtext(200,200,nkey) in the keypress hook.