Jump to content

Help plz =D


Recommended Posts

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

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 by Generator
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...