Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- toggleW = 0
- function OnEvent(event, arg, family)
- family = family or ""
- if family == "kb" and event == "G_PRESSED" and arg == 1 then
- if toggleW == 0 then
- toggleW = 1
- PressKey("w")
- OutputLCDMessage("Auto Run Enabled",5000)
- SetBacklightColor(255,0,0,"kb")
- else
- toggleW = 0
- ReleaseKey("w")
- OutputLCDMessage("Auto Run Disabled",5000)
- SetBacklightColor(0,255,0, "kb")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement