Advertisement
HyuruPAC3

key display

Aug 2nd, 2018
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.17 KB | None | 0 0
  1. @name key display
  2. @inputs EGP:wirelink
  3. @outputs
  4. @persist Cell1:string Cell2:string Cell3:string Cell4:string Cell5:string Cell6:string Cell7:string Cell8:string
  5. @persist Cell9:string Cell10:string Cell11:string Cell12:string
  6. @trigger
  7.  
  8. if(first() || dupefinished()){
  9.  
  10. EGP:egpDrawTopLeft(1)
  11. EGP:egpRoundedBox(1,vec2(50,50),vec2(0,0))
  12. EGP:egpSize(1,vec2(400,10))
  13. EGP:egpColor(1,vec(100,162,232))
  14.  
  15. EGP:egpDrawTopLeft(2)
  16. EGP:egpText(2, "Keystroke Display",vec2(60,0))
  17. EGP:egpSize(2, 50)
  18. EGP:egpColor(2,vec(255,255,255))
  19.  
  20. }
  21.  
  22.  
  23. function void movecells(){
  24.  
  25. Cell12 = Cell11
  26. Cell11 = Cell10
  27. Cell10 = Cell9
  28. Cell9 = Cell8
  29. Cell8 = Cell7
  30. Cell7 = Cell6
  31. Cell6 = Cell5
  32. Cell5 = Cell4
  33. Cell4 = Cell3
  34. Cell3 = Cell2
  35. Cell2 = Cell1
  36. }
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50. interval(140)
  51.  
  52. findByClass("player")
  53. #ActivePlayer1 = findClosest(entity():pos())
  54. #Distance1 = round(((entity():pos() - ActivePlayer1:pos()):length()))
  55. Player1=findPlayerByName("Boop")
  56. #if(Distance1 > 500){Player1 = noentity()}else{Player1 = ActivePlayer1}
  57.  
  58.  
  59.  
  60. User=Player1
  61.  
  62.  
  63. #keys
  64.  
  65. Pad1 = User:keyPressed("PAD_1")
  66. if(Pad1 == 1){movecells() Cell1 = "Pad1"}
  67.  
  68. Pad2 = User:keyPressed("PAD_2")
  69. if(Pad2 == 1){movecells() Cell1 = "Pad2"}
  70.  
  71. Pad3 = User:keyPressed("PAD_3")
  72. if(Pad3 == 1){movecells() Cell1 = "Pad3"}
  73.  
  74. Pad4 = User:keyPressed("PAD_4")
  75. if(Pad4 == 1){movecells() Cell1 = "Pad4"}
  76.  
  77. Pad5 = User:keyPressed("PAD_5")
  78. if(Pad5 == 1){movecells() Cell1 = "Pad5"}
  79.  
  80. Pad6 = User:keyPressed("PAD_6")
  81. if(Pad6 == 1){movecells() Cell1 = "Pad6"}
  82.  
  83. Pad7 = User:keyPressed("PAD_7")
  84. if(Pad7 == 1){movecells() Cell1 = "Pad7"}
  85.  
  86. Pad8 = User:keyPressed("PAD_8")
  87. if(Pad8 == 1){movecells() Cell1 = "Pad8"}
  88.  
  89. Pad9 = User:keyPressed("PAD_9")
  90. if(Pad9 == 1){movecells() Cell1 = "Pad9"}
  91.  
  92. Q = User:keyPressed("q")
  93. if(Q == 1){movecells() Cell1 = "Q"}
  94.  
  95. W = User:keyPressed("w")
  96. if(W == 1){movecells() Cell1 = "W"}
  97.  
  98. E = User:keyPressed("e")
  99. if(E == 1){movecells() Cell1 = "E"}
  100.  
  101. R = User:keyPressed("r")
  102. if(R == 1){movecells() Cell1 = "R"}
  103.  
  104. T = User:keyPressed("t")
  105. if(T == 1){movecells() Cell1 = "T"}
  106.  
  107. Y = User:keyPressed("y")
  108. if(Y == 1){movecells() Cell1 = "Y"}
  109.  
  110. U = User:keyPressed("u")
  111. if(U == 1){movecells() Cell1 = "U"}
  112.  
  113. I = User:keyPressed("i")
  114. if(I == 1){movecells() Cell1 = "I"}
  115.  
  116. O = User:keyPressed("o")
  117. if(O == 1){movecells() Cell1 = "O"}
  118.  
  119. P = User:keyPressed("p")
  120. if(P == 1){movecells() Cell1 = "P"}
  121.  
  122. A = User:keyPressed("a")
  123. if(A == 1){movecells() Cell1 = "A"}
  124.  
  125. S = User:keyPressed("s")
  126. if(S == 1){movecells() Cell1 = "S"}
  127.  
  128. D = User:keyPressed("d")
  129. if(D == 1){movecells() Cell1 = "D"}
  130.  
  131. F = User:keyPressed("f")
  132. if(F == 1){movecells() Cell1 = "F"}
  133.  
  134. G = User:keyPressed("g")
  135. if(G == 1){movecells() Cell1 = "G"}
  136.  
  137. H = User:keyPressed("h")
  138. if(H == 1){movecells() Cell1 = "H"}
  139.  
  140. J = User:keyPressed("j")
  141. if(J == 1){movecells() Cell1 = "J"}
  142.  
  143. K = User:keyPressed("k")
  144. if(K == 1){movecells() Cell1 = "K"}
  145.  
  146. L = User:keyPressed("l")
  147. if(L == 1){movecells() Cell1 = "L"}
  148.  
  149. Z = User:keyPressed("z")
  150. if(Z == 1){movecells() Cell1 = "Z"}
  151.  
  152. X = User:keyPressed("x")
  153. if(X == 1){movecells() Cell1 = "X"}
  154.  
  155. C = User:keyPressed("c")
  156. if(C == 1){movecells() Cell1 = "C"}
  157.  
  158. V = User:keyPressed("v")
  159. if(V == 1){movecells() Cell1 = "V"}
  160.  
  161. B = User:keyPressed("b")
  162. if(B == 1){movecells() Cell1 = "B"}
  163.  
  164. N = User:keyPressed("n")
  165. if(N == 1){movecells() Cell1 = "N"}
  166.  
  167. M = User:keyPressed("m")
  168. if(M == 1){movecells() Cell1 = "M"}
  169.  
  170. Divide = User:keyPressed("PAD_DIVIDE")
  171. if(Divide == 1){movecells() Cell1 = "/"}
  172.  
  173. Star = User:keyPressed("PAD_MULTIPLY")
  174. if(Star == 1){movecells() Cell1 = "*"}
  175.  
  176. Minus = User:keyPressed("PAD_MINUS")
  177. if(Minus == 1){movecells() Cell1 = "-"}
  178.  
  179. Plus = User:keyPressed("PAD_PLUS")
  180. if(Plus == 1){movecells() Cell1 = "+"}
  181.  
  182.  
  183. Enter = User:keyPressed("PAD_Enter")
  184. if(Enter == 1){movecells() Cell1 = "ENTER"}
  185.  
  186. DECIMAL = User:keyPressed("PAD_DECIMAL")
  187. if(DECIMAL == 1){movecells() Cell1 = "."}
  188.  
  189.  
  190. LBRACKET = User:keyPressed("LBRACKET")
  191. if(LBRACKET == 1){movecells() Cell1 = "["}
  192.  
  193. RBRACKET = User:keyPressed("RBRACKET")
  194. if(RBRACKET == 1){movecells() Cell1 = "]"}
  195.  
  196. SEMICOLON = User:keyPressed("KEY_SEMICOLON")
  197. if(SEMICOLON == 1){movecells() Cell1 = ";"}
  198.  
  199. Hash = User:keyPressed("APOSTROPHE")
  200. if(Hash == 1){movecells() Cell1 = "#"}
  201.  
  202.  
  203. BACKQUOTE = User:keyPressed("BACKQUOTE")
  204. if(BACKQUOTE == 1){movecells() Cell1 = "`"}
  205.  
  206.  
  207. COMMA = User:keyPressed("COMMA")
  208. if(COMMA == 1){movecells() Cell1 = ","}
  209.  
  210. PERIOD = User:keyPressed("PERIOD")
  211. if(PERIOD == 1){movecells() Cell1 = "."}
  212.  
  213. SLASH = User:keyPressed("SLASH")
  214. if(SLASH == 1){movecells() Cell1 = "SLASH"}
  215.  
  216. BACKSLASH = User:keyPressed("BACKSLASH")
  217. if(BACKSLASH == 1){movecells() Cell1 = "BACKSLASH"}
  218.  
  219.  
  220. EQUAL = User:keyPressed("EQUAL")
  221. if(EQUAL == 1){movecells() Cell1 = "="}
  222.  
  223. MINUS = User:keyPressed("MINUS")
  224. if(MINUS == 1){movecells() Cell1 = "-"}
  225.  
  226. ENTER = User:keyPressed("ENTER")
  227. if(ENTER == 1){movecells() Cell1 = "ENTER"}
  228.  
  229. SPACE = User:keyPressed("SPACE")
  230. if(SPACE == 1){movecells() Cell1 = "SPACE"}
  231.  
  232. BACKSPACE = User:keyPressed("BACKSPACE")
  233. if(BACKSPACE == 1){movecells() Cell1 = "BACKSPACE"}
  234.  
  235. TAB = User:keyPressed("TAB")
  236. if(TAB == 1){movecells() Cell1 = "TAB"}
  237.  
  238.  
  239. CAPSLOCK = User:keyPressed("CAPSLOCK")
  240. if(CAPSLOCK == 1){movecells() Cell1 = "CAPSLOCK"}
  241.  
  242. NUMLOCK = User:keyPressed("NUMLOCK")
  243. if(NUMLOCK == 1){movecells() Cell1 = "NUMLOCK"}
  244.  
  245. ESCAPE = User:keyPressed("ESCAPE")
  246. if(ESCAPE == 1){movecells() Cell1 = "ESCAPE"}
  247.  
  248. INSERT = User:keyPressed("INSERT")
  249. if(INSERT == 1){movecells() Cell1 = "INSERT"}
  250.  
  251.  
  252. DELETE = User:keyPressed("DELETE")
  253. if(DELETE == 1){movecells() Cell1 = "DELETE"}
  254.  
  255. HOME = User:keyPressed("HOME")
  256. if(HOME == 1){movecells() Cell1 = "HOME"}
  257.  
  258. END = User:keyPressed("END")
  259. if(END == 1){movecells() Cell1 = "END"}
  260.  
  261. PAGEUP = User:keyPressed("PAGEUP")
  262. if(PAGEUP == 1){movecells() Cell1 = "PAGEUP"}
  263.  
  264. PAGEDOWN = User:keyPressed("PAGEDOWN")
  265. if(PAGEDOWN == 1){movecells() Cell1 = "PAGEDOWN"}
  266.  
  267. BREAK = User:keyPressed("BREAK")
  268. if(BREAK == 1){movecells() Cell1 = "BREAK"}
  269.  
  270. LSHIFT = User:keyPressed("LSHIFT")
  271. if(LSHIFT == 1){movecells() Cell1 = "LSHIFT"}
  272.  
  273. RSHIFT = User:keyPressed("RSHIFT")
  274. if(RSHIFT == 1){movecells() Cell1 = "RSHIFT"}
  275.  
  276. RALT = User:keyPressed("RALT")
  277. if(RALT == 1){movecells() Cell1 = "RALT"}
  278.  
  279. LCONTROL = User:keyPressed("LCONTROL")
  280. if(LCONTROL == 1){movecells() Cell1 = "LCONTROL"}
  281.  
  282. RCONTROL = User:keyPressed("RCONTROL")
  283. if(RCONTROL == 1){movecells() Cell1 = "RCONTROL"}
  284.  
  285. UP = User:keyPressed("UP")
  286. if(UP == 1){movecells() Cell1 = "UP"}
  287.  
  288. LEFT = User:keyPressed("LEFT")
  289. if(LEFT == 1){movecells() Cell1 = "LEFT"}
  290.  
  291. RIGHT = User:keyPressed("RIGHT")
  292. if(RIGHT == 1){movecells() Cell1 = "RIGHT"}
  293.  
  294. DOWN = User:keyPressed("DOWN")
  295. if(DOWN == 1){movecells() Cell1 = "DOWN"}
  296.  
  297.  
  298. F1 = User:keyPressed("F1")
  299. if(F1 == 1){movecells() Cell1 = "F1"}
  300.  
  301. F2 = User:keyPressed("F2")
  302. if(F2 == 1){movecells() Cell1 = "F2"}
  303.  
  304. F3 = User:keyPressed("F3")
  305. if(F3 == 1){movecells() Cell1 = "F3"}
  306.  
  307. F4 = User:keyPressed("F4")
  308. if(F4 == 1){movecells() Cell1 = "F4"}
  309.  
  310. F5 = User:keyPressed("F5")
  311. if(F5 == 1){movecells() Cell1 = "F5"}
  312.  
  313. F6 = User:keyPressed("F6")
  314. if(F6 == 1){movecells() Cell1 = "F6"}
  315.  
  316. F7 = User:keyPressed("F7")
  317. if(F7== 1){movecells() Cell1 = "F7"}
  318.  
  319. F8 = User:keyPressed("F8")
  320. if(F8 == 1){movecells() Cell1 = "F8"}
  321.  
  322. F9 = User:keyPressed("F9")
  323. if(F9 == 1){movecells() Cell1 = "F9"}
  324.  
  325. F10 = User:keyPressed("F10")
  326. if(F10 == 1){movecells() Cell1 = "F10"}
  327.  
  328. F11 = User:keyPressed("F11")
  329. if(F11 == 1){movecells() Cell1 = "F11"}
  330.  
  331. F12 = User:keyPressed("F12")
  332. if(F12 == 1){movecells() Cell1 = "F12"}
  333.  
  334. Mouse1 = User:keyAttack1()
  335. if(Mouse1 == 1){movecells() Cell1 = "MOUSE1"}
  336.  
  337. Mouse2 = User:keyAttack2()
  338. if(Mouse2 == 1){movecells() Cell1 = "MOUSE2"}
  339.  
  340.  
  341.  
  342.  
  343. EGP:egpDrawTopLeft(3)
  344. EGP:egpText(3, Cell1,vec2(20,80))
  345. EGP:egpSize(3, 30)
  346. EGP:egpColor(3,vec(255,255,255))
  347.  
  348. EGP:egpDrawTopLeft(4)
  349. EGP:egpText(4, Cell2,vec2(20,110))
  350. EGP:egpSize(4, 30)
  351. EGP:egpColor(4,vec(255,255,255))
  352.  
  353. EGP:egpDrawTopLeft(5)
  354. EGP:egpText(5, Cell3,vec2(20,140))
  355. EGP:egpSize(5, 30)
  356. EGP:egpColor(5,vec(255,255,255))
  357.  
  358. EGP:egpDrawTopLeft(6)
  359. EGP:egpText(6, Cell4,vec2(20,170))
  360. EGP:egpSize(6, 30)
  361. EGP:egpColor(6,vec(255,255,255))
  362.  
  363. EGP:egpDrawTopLeft(7)
  364. EGP:egpText(7, Cell5,vec2(20,200))
  365. EGP:egpSize(7, 30)
  366. EGP:egpColor(7,vec(255,255,255))
  367.  
  368. EGP:egpDrawTopLeft(8)
  369. EGP:egpText(8, Cell6,vec2(20,230))
  370. EGP:egpSize(8, 30)
  371. EGP:egpColor(8,vec(255,255,255))
  372.  
  373. EGP:egpDrawTopLeft(9)
  374. EGP:egpText(9, Cell7,vec2(20,260))
  375. EGP:egpSize(9, 30)
  376. EGP:egpColor(9,vec(255,255,255))
  377.  
  378. EGP:egpDrawTopLeft(10)
  379. EGP:egpText(10, Cell8,vec2(20,290))
  380. EGP:egpSize(10, 30)
  381. EGP:egpColor(10,vec(255,255,255))
  382.  
  383. EGP:egpDrawTopLeft(11)
  384. EGP:egpText(11, Cell9,vec2(20,320))
  385. EGP:egpSize(11, 30)
  386. EGP:egpColor(11,vec(255,255,255))
  387.  
  388. EGP:egpDrawTopLeft(12)
  389. EGP:egpText(12, Cell10,vec2(20,350))
  390. EGP:egpSize(12, 30)
  391. EGP:egpColor(12,vec(255,255,255))
  392.  
  393. EGP:egpDrawTopLeft(13)
  394. EGP:egpText(13, Cell11,vec2(20,380))
  395. EGP:egpSize(13, 30)
  396. EGP:egpColor(13,vec(255,255,255))
  397.  
  398. EGP:egpDrawTopLeft(14)
  399. EGP:egpText(14, Cell12,vec2(20,410))
  400. EGP:egpSize(14, 30)
  401. EGP:egpColor(14,vec(255,255,255))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement