Advertisement
Xyberviri

Logitec Autorun lua sript

Sep 15th, 2014
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.38 KB | None | 0 0
  1. toggleW = 0
  2. function OnEvent(event, arg, family)
  3. family = family or ""
  4. if family == "kb" and event == "G_PRESSED" and arg == 1 then
  5. if toggleW == 0 then
  6. toggleW = 1
  7. PressKey("w")
  8. OutputLCDMessage("Auto Run Enabled",5000)
  9. SetBacklightColor(255,0,0,"kb")
  10. else
  11. toggleW = 0
  12. ReleaseKey("w")
  13. OutputLCDMessage("Auto Run Disabled",5000)
  14. SetBacklightColor(0,255,0, "kb")
  15. end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement