Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name key display
- @inputs EGP:wirelink
- @outputs
- @persist Cell1:string Cell2:string Cell3:string Cell4:string Cell5:string Cell6:string Cell7:string Cell8:string
- @persist Cell9:string Cell10:string Cell11:string Cell12:string
- @trigger
- if(first() || dupefinished()){
- EGP:egpDrawTopLeft(1)
- EGP:egpRoundedBox(1,vec2(50,50),vec2(0,0))
- EGP:egpSize(1,vec2(400,10))
- EGP:egpColor(1,vec(100,162,232))
- EGP:egpDrawTopLeft(2)
- EGP:egpText(2, "Keystroke Display",vec2(60,0))
- EGP:egpSize(2, 50)
- EGP:egpColor(2,vec(255,255,255))
- }
- function void movecells(){
- Cell12 = Cell11
- Cell11 = Cell10
- Cell10 = Cell9
- Cell9 = Cell8
- Cell8 = Cell7
- Cell7 = Cell6
- Cell6 = Cell5
- Cell5 = Cell4
- Cell4 = Cell3
- Cell3 = Cell2
- Cell2 = Cell1
- }
- interval(140)
- findByClass("player")
- #ActivePlayer1 = findClosest(entity():pos())
- #Distance1 = round(((entity():pos() - ActivePlayer1:pos()):length()))
- Player1=findPlayerByName("Boop")
- #if(Distance1 > 500){Player1 = noentity()}else{Player1 = ActivePlayer1}
- User=Player1
- #keys
- Pad1 = User:keyPressed("PAD_1")
- if(Pad1 == 1){movecells() Cell1 = "Pad1"}
- Pad2 = User:keyPressed("PAD_2")
- if(Pad2 == 1){movecells() Cell1 = "Pad2"}
- Pad3 = User:keyPressed("PAD_3")
- if(Pad3 == 1){movecells() Cell1 = "Pad3"}
- Pad4 = User:keyPressed("PAD_4")
- if(Pad4 == 1){movecells() Cell1 = "Pad4"}
- Pad5 = User:keyPressed("PAD_5")
- if(Pad5 == 1){movecells() Cell1 = "Pad5"}
- Pad6 = User:keyPressed("PAD_6")
- if(Pad6 == 1){movecells() Cell1 = "Pad6"}
- Pad7 = User:keyPressed("PAD_7")
- if(Pad7 == 1){movecells() Cell1 = "Pad7"}
- Pad8 = User:keyPressed("PAD_8")
- if(Pad8 == 1){movecells() Cell1 = "Pad8"}
- Pad9 = User:keyPressed("PAD_9")
- if(Pad9 == 1){movecells() Cell1 = "Pad9"}
- Q = User:keyPressed("q")
- if(Q == 1){movecells() Cell1 = "Q"}
- W = User:keyPressed("w")
- if(W == 1){movecells() Cell1 = "W"}
- E = User:keyPressed("e")
- if(E == 1){movecells() Cell1 = "E"}
- R = User:keyPressed("r")
- if(R == 1){movecells() Cell1 = "R"}
- T = User:keyPressed("t")
- if(T == 1){movecells() Cell1 = "T"}
- Y = User:keyPressed("y")
- if(Y == 1){movecells() Cell1 = "Y"}
- U = User:keyPressed("u")
- if(U == 1){movecells() Cell1 = "U"}
- I = User:keyPressed("i")
- if(I == 1){movecells() Cell1 = "I"}
- O = User:keyPressed("o")
- if(O == 1){movecells() Cell1 = "O"}
- P = User:keyPressed("p")
- if(P == 1){movecells() Cell1 = "P"}
- A = User:keyPressed("a")
- if(A == 1){movecells() Cell1 = "A"}
- S = User:keyPressed("s")
- if(S == 1){movecells() Cell1 = "S"}
- D = User:keyPressed("d")
- if(D == 1){movecells() Cell1 = "D"}
- F = User:keyPressed("f")
- if(F == 1){movecells() Cell1 = "F"}
- G = User:keyPressed("g")
- if(G == 1){movecells() Cell1 = "G"}
- H = User:keyPressed("h")
- if(H == 1){movecells() Cell1 = "H"}
- J = User:keyPressed("j")
- if(J == 1){movecells() Cell1 = "J"}
- K = User:keyPressed("k")
- if(K == 1){movecells() Cell1 = "K"}
- L = User:keyPressed("l")
- if(L == 1){movecells() Cell1 = "L"}
- Z = User:keyPressed("z")
- if(Z == 1){movecells() Cell1 = "Z"}
- X = User:keyPressed("x")
- if(X == 1){movecells() Cell1 = "X"}
- C = User:keyPressed("c")
- if(C == 1){movecells() Cell1 = "C"}
- V = User:keyPressed("v")
- if(V == 1){movecells() Cell1 = "V"}
- B = User:keyPressed("b")
- if(B == 1){movecells() Cell1 = "B"}
- N = User:keyPressed("n")
- if(N == 1){movecells() Cell1 = "N"}
- M = User:keyPressed("m")
- if(M == 1){movecells() Cell1 = "M"}
- Divide = User:keyPressed("PAD_DIVIDE")
- if(Divide == 1){movecells() Cell1 = "/"}
- Star = User:keyPressed("PAD_MULTIPLY")
- if(Star == 1){movecells() Cell1 = "*"}
- Minus = User:keyPressed("PAD_MINUS")
- if(Minus == 1){movecells() Cell1 = "-"}
- Plus = User:keyPressed("PAD_PLUS")
- if(Plus == 1){movecells() Cell1 = "+"}
- Enter = User:keyPressed("PAD_Enter")
- if(Enter == 1){movecells() Cell1 = "ENTER"}
- DECIMAL = User:keyPressed("PAD_DECIMAL")
- if(DECIMAL == 1){movecells() Cell1 = "."}
- LBRACKET = User:keyPressed("LBRACKET")
- if(LBRACKET == 1){movecells() Cell1 = "["}
- RBRACKET = User:keyPressed("RBRACKET")
- if(RBRACKET == 1){movecells() Cell1 = "]"}
- SEMICOLON = User:keyPressed("KEY_SEMICOLON")
- if(SEMICOLON == 1){movecells() Cell1 = ";"}
- Hash = User:keyPressed("APOSTROPHE")
- if(Hash == 1){movecells() Cell1 = "#"}
- BACKQUOTE = User:keyPressed("BACKQUOTE")
- if(BACKQUOTE == 1){movecells() Cell1 = "`"}
- COMMA = User:keyPressed("COMMA")
- if(COMMA == 1){movecells() Cell1 = ","}
- PERIOD = User:keyPressed("PERIOD")
- if(PERIOD == 1){movecells() Cell1 = "."}
- SLASH = User:keyPressed("SLASH")
- if(SLASH == 1){movecells() Cell1 = "SLASH"}
- BACKSLASH = User:keyPressed("BACKSLASH")
- if(BACKSLASH == 1){movecells() Cell1 = "BACKSLASH"}
- EQUAL = User:keyPressed("EQUAL")
- if(EQUAL == 1){movecells() Cell1 = "="}
- MINUS = User:keyPressed("MINUS")
- if(MINUS == 1){movecells() Cell1 = "-"}
- ENTER = User:keyPressed("ENTER")
- if(ENTER == 1){movecells() Cell1 = "ENTER"}
- SPACE = User:keyPressed("SPACE")
- if(SPACE == 1){movecells() Cell1 = "SPACE"}
- BACKSPACE = User:keyPressed("BACKSPACE")
- if(BACKSPACE == 1){movecells() Cell1 = "BACKSPACE"}
- TAB = User:keyPressed("TAB")
- if(TAB == 1){movecells() Cell1 = "TAB"}
- CAPSLOCK = User:keyPressed("CAPSLOCK")
- if(CAPSLOCK == 1){movecells() Cell1 = "CAPSLOCK"}
- NUMLOCK = User:keyPressed("NUMLOCK")
- if(NUMLOCK == 1){movecells() Cell1 = "NUMLOCK"}
- ESCAPE = User:keyPressed("ESCAPE")
- if(ESCAPE == 1){movecells() Cell1 = "ESCAPE"}
- INSERT = User:keyPressed("INSERT")
- if(INSERT == 1){movecells() Cell1 = "INSERT"}
- DELETE = User:keyPressed("DELETE")
- if(DELETE == 1){movecells() Cell1 = "DELETE"}
- HOME = User:keyPressed("HOME")
- if(HOME == 1){movecells() Cell1 = "HOME"}
- END = User:keyPressed("END")
- if(END == 1){movecells() Cell1 = "END"}
- PAGEUP = User:keyPressed("PAGEUP")
- if(PAGEUP == 1){movecells() Cell1 = "PAGEUP"}
- PAGEDOWN = User:keyPressed("PAGEDOWN")
- if(PAGEDOWN == 1){movecells() Cell1 = "PAGEDOWN"}
- BREAK = User:keyPressed("BREAK")
- if(BREAK == 1){movecells() Cell1 = "BREAK"}
- LSHIFT = User:keyPressed("LSHIFT")
- if(LSHIFT == 1){movecells() Cell1 = "LSHIFT"}
- RSHIFT = User:keyPressed("RSHIFT")
- if(RSHIFT == 1){movecells() Cell1 = "RSHIFT"}
- RALT = User:keyPressed("RALT")
- if(RALT == 1){movecells() Cell1 = "RALT"}
- LCONTROL = User:keyPressed("LCONTROL")
- if(LCONTROL == 1){movecells() Cell1 = "LCONTROL"}
- RCONTROL = User:keyPressed("RCONTROL")
- if(RCONTROL == 1){movecells() Cell1 = "RCONTROL"}
- UP = User:keyPressed("UP")
- if(UP == 1){movecells() Cell1 = "UP"}
- LEFT = User:keyPressed("LEFT")
- if(LEFT == 1){movecells() Cell1 = "LEFT"}
- RIGHT = User:keyPressed("RIGHT")
- if(RIGHT == 1){movecells() Cell1 = "RIGHT"}
- DOWN = User:keyPressed("DOWN")
- if(DOWN == 1){movecells() Cell1 = "DOWN"}
- F1 = User:keyPressed("F1")
- if(F1 == 1){movecells() Cell1 = "F1"}
- F2 = User:keyPressed("F2")
- if(F2 == 1){movecells() Cell1 = "F2"}
- F3 = User:keyPressed("F3")
- if(F3 == 1){movecells() Cell1 = "F3"}
- F4 = User:keyPressed("F4")
- if(F4 == 1){movecells() Cell1 = "F4"}
- F5 = User:keyPressed("F5")
- if(F5 == 1){movecells() Cell1 = "F5"}
- F6 = User:keyPressed("F6")
- if(F6 == 1){movecells() Cell1 = "F6"}
- F7 = User:keyPressed("F7")
- if(F7== 1){movecells() Cell1 = "F7"}
- F8 = User:keyPressed("F8")
- if(F8 == 1){movecells() Cell1 = "F8"}
- F9 = User:keyPressed("F9")
- if(F9 == 1){movecells() Cell1 = "F9"}
- F10 = User:keyPressed("F10")
- if(F10 == 1){movecells() Cell1 = "F10"}
- F11 = User:keyPressed("F11")
- if(F11 == 1){movecells() Cell1 = "F11"}
- F12 = User:keyPressed("F12")
- if(F12 == 1){movecells() Cell1 = "F12"}
- Mouse1 = User:keyAttack1()
- if(Mouse1 == 1){movecells() Cell1 = "MOUSE1"}
- Mouse2 = User:keyAttack2()
- if(Mouse2 == 1){movecells() Cell1 = "MOUSE2"}
- EGP:egpDrawTopLeft(3)
- EGP:egpText(3, Cell1,vec2(20,80))
- EGP:egpSize(3, 30)
- EGP:egpColor(3,vec(255,255,255))
- EGP:egpDrawTopLeft(4)
- EGP:egpText(4, Cell2,vec2(20,110))
- EGP:egpSize(4, 30)
- EGP:egpColor(4,vec(255,255,255))
- EGP:egpDrawTopLeft(5)
- EGP:egpText(5, Cell3,vec2(20,140))
- EGP:egpSize(5, 30)
- EGP:egpColor(5,vec(255,255,255))
- EGP:egpDrawTopLeft(6)
- EGP:egpText(6, Cell4,vec2(20,170))
- EGP:egpSize(6, 30)
- EGP:egpColor(6,vec(255,255,255))
- EGP:egpDrawTopLeft(7)
- EGP:egpText(7, Cell5,vec2(20,200))
- EGP:egpSize(7, 30)
- EGP:egpColor(7,vec(255,255,255))
- EGP:egpDrawTopLeft(8)
- EGP:egpText(8, Cell6,vec2(20,230))
- EGP:egpSize(8, 30)
- EGP:egpColor(8,vec(255,255,255))
- EGP:egpDrawTopLeft(9)
- EGP:egpText(9, Cell7,vec2(20,260))
- EGP:egpSize(9, 30)
- EGP:egpColor(9,vec(255,255,255))
- EGP:egpDrawTopLeft(10)
- EGP:egpText(10, Cell8,vec2(20,290))
- EGP:egpSize(10, 30)
- EGP:egpColor(10,vec(255,255,255))
- EGP:egpDrawTopLeft(11)
- EGP:egpText(11, Cell9,vec2(20,320))
- EGP:egpSize(11, 30)
- EGP:egpColor(11,vec(255,255,255))
- EGP:egpDrawTopLeft(12)
- EGP:egpText(12, Cell10,vec2(20,350))
- EGP:egpSize(12, 30)
- EGP:egpColor(12,vec(255,255,255))
- EGP:egpDrawTopLeft(13)
- EGP:egpText(13, Cell11,vec2(20,380))
- EGP:egpSize(13, 30)
- EGP:egpColor(13,vec(255,255,255))
- EGP:egpDrawTopLeft(14)
- EGP:egpText(14, Cell12,vec2(20,410))
- EGP:egpSize(14, 30)
- EGP:egpColor(14,vec(255,255,255))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement