| Posted: December 21st, 2006 |
|
|
|
|
could someone please post a antiafk script that doesnt turn you when the BG is over or tell me what is wrong with
; Press Esc to terminate script, Pause/Break to "pause"
Global $Paused, $t
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
HotKeySet("{F8}", "Showme")
;;;; Body of program would go here;;;;
While 1
If $t = 1 Then
Send("{s down}");presses the s button and holds it
Sleep(5800);waits for 5800 milliseconds/5.8 sec
Send("{s up}");releases s button
MouseClick("left",205,531);leftclicks at the coordinates x=205,y=531
Sleep(60 * 1000)
EndIf
Sleep(10)
WEnd
;;;;;;;;
Func TogglePause()
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Script is "Paused"',0,0)
WEnd
ToolTip("")
EndFunc
Func Terminate()
Exit 0
EndFunc
Func Showme()
If $t = 0 Then
$t = 1
Return
EndIf
If $t = 1 Then
$t = 0
Return
EndIf
|
|