Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function FrenesiColors()
- for i=0, 20, 10 do
- SetBacklightColor(3, 227, 252, "mouse");
- Sleep(100);
- SetBacklightColor(252, 169, 3, "mouse");
- Sleep(100);
- SetBacklightColor(255, 255, 255, "mouse");
- Sleep(100);
- SetBacklightColor(255, 0, 0, "mouse");
- end
- end
- function PressedColors(event, arg, family)
- -- PRESSED EVENTS
- if event == "MOUSE_BUTTON_PRESSED" and arg == 6 then
- SetBacklightColor(252, 169, 3, family);
- end
- if event == "MOUSE_BUTTON_PRESSED" and arg == 7 then
- SetBacklightColor(255, 255, 255, family);
- end
- if event == "MOUSE_BUTTON_PRESSED" and arg == 9 then
- SetBacklightColor(255, 0, 0, family);
- end
- -- PRESSED EVENTS
- end
- function OnEvent(event, arg, family)
- now = GetDate("%d/%m/%Y as %H:%M");
- OutputLogMessage("Evento recebido [%s \\ %s]\n", event, now);
- OutputLogMessage("Botao G%d\n", arg);
- FrenesiColors();
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement