BiiGnoob Posted April 20, 2007 Share Posted April 20, 2007 hi ummm i was wondering if the following was right to send f5 command while on Internet explorer, also can some1 help me make the time to around like 10 secs? WinWaitActive("Internet Explorer") HotKeySet("{PAUSE}", "Start") HotKeySet("!{PAUSE}","Quit") TogglePause() func Start() HotKeySet("{PAUSE}") HotKeySet("{PAUSE}", "TogglePause") ToolTip('AntiAFK started.',0,0) While 1 Send("{F5}") Sleep(Random(120000,240000)) WEnd EndFunc Func TogglePause() ToolTip('AntiAFK Stopped.',0,0) HotKeySet("{PAUSE}") HotKeySet("{PAUSE}", "Start") While 1 sleep(100) WEnd EndFunc func Quit() Exit EndFunc Link to comment Share on other sites More sharing options...
Generator Posted April 20, 2007 Share Posted April 20, 2007 (edited) Hotkeyset("{Pause}","Start") Hotkeyset("{ESC}","Quit") Global $Boolean=False While 1 Sleep(1000) WEnd Func Start() $Boolean=Not $Boolean If $Boolean=True Then ToolTip("AntiAFK Started") Else ToolTip("AntiAFK Stopped") EndIf While $Boolean=True $Random=Random(12000,14000) Send("{F5}") Sleep($Random) Wend EndFunc Func Quit() Exit EndFunc Edited April 20, 2007 by Generator Link to comment Share on other sites More sharing options...
soulhealer Posted April 20, 2007 Share Posted April 20, 2007 hi ummm i was wondering if the following was right to send f5 command while on Internet explorer, also can some1 help me make the time to around like 10 secs? HotKeySet("^{PAUSE}", "Start") ; CTRL+PAUSE to start HotKeySet("!{PAUSE}","Quit") ; ALT+PAUSE to quit Func Start() WinWaitActive("Internet Explorer") While 1 ; loop endlessly until script terminated WinWaitActive("Internet Explorer") ; pauses script if Internet Explorer isn't current active window Send("{F5}") ;Send F5 button to current active window Sleep(10000) ;Set delay 10000ms a.k.a 10 seconds WEnd EndFunc Func Quit() Exit EndFunc there are other methods, this one is the simpliest one. if u use _IE commands, it gives better result, as you don't need internet explorer to be active window all the time. you just minimize it, and let the script refresh it every 10 seconds. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now