Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2020
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. --Keycodes version 1.0
  2. function main()
  3. trick.print("This program is meant to be run on startup only.")
  4. trick.res()
  5. end
  6. do
  7. keycodes = {
  8. 2 = "1",
  9. 3 = "2",
  10. 4 = "3",
  11. 5 = "4",
  12. 6 = "5",
  13. 7 = "6",
  14. 8 = "7",
  15. 9 = "8",
  16. 10 = "9",
  17. 11 = "0",
  18. 16 = "Q",
  19. 17 = "W",
  20. 18 = "E",
  21. 19 = "R",
  22. 20 = "T",
  23. 21 = "Y",
  24. 22 = "U",
  25. 23 = "I",
  26. 24 = "O",
  27. 25 = "P",
  28. 26 = "[",
  29. 27 = "]",
  30. 30 = "A",
  31. 31 = "S",
  32. 32 = "D",
  33. 33 = "F",
  34. 34 = "G",
  35. 35 = "H",
  36. 36 = "J",
  37. 37 = "K",
  38. 38 = "L",
  39. 43 = "\\",
  40. 44 = "Z",
  41. 45 = "X",
  42. 46 = "C",
  43. 47 = "V",
  44. 48 = "B",
  45. 49 = "N",
  46. 50 = "M",
  47. 57 = " "
  48. }
  49. end
  50. function trick.convert(key)
  51. return keycodes[key]
  52. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement