Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ON = False
- $t = TimerInit()
- func toggle()
- $ON = not $ON
- $t = TimerInit()
- endfunc
- func pressF2()
- if TimerDiff($t) > 20000 then
- ToolTip("Pressing F2...",10,10)
- send("{F2 down}")
- Sleep(100)
- send("{F2 up}")
- $t = TimerInit()
- EndIf
- EndFunc
- HotKeySet("0", "toggle")
- MsgBox(0,"","Press 0 to toggle On/Off")
- While True
- Sleep(500)
- if $ON Then
- ToolTip("Script ON: " & Round(TimerDiff($t)/1000,0),10,10)
- pressF2()
- Else
- ToolTip("Script OFF...",10,10)
- endif
- WEnd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement