Jump to content
Sign in to follow this  
Guest Psychoticdenial

I need a little help

Recommended Posts

Guest Psychoticdenial

(please forgive me if post is messed up, my first time posting ^.^)I have the basics down for it

Global $Paused
HotKeySet("{PAUSE}", "TogglePause")
Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('You have paused the script! Please hit Pause/Break to resume refreshing this page!',0,0)
    WEnd
    ToolTip("")
EndFunc



Send("{F5}")
WinWaitActive("PAGE NAME GOES HERE")

then i have the Send("{F5}")

WinWaitActive("PAGE NAME GOES HERE") part repeating itself for a long time. is there a simpler way to do this? or a way to make it where the page fully loads? i would appreciate it if someone could help me :(

Share this post


Link to post
Share on other sites

Actually, there's a neater way to do this that doesn't require AutoIt (though I hate to say it..). Download Firefox and install the ReloadEvery extension. You can then reload a page with a simple right-click at a defined interval (5 seconds, 5 minutes, 5 hours, ...). How's that?

ben

Share this post


Link to post
Share on other sites

if you are using internet explorer you could use this.

Just activate the Internet Explorer window and press {F1}.

Opt ("WinTitleMatchMode",2)
Global $Paused
HotKeySet("{F1}", "Start")
HotKeySet("{PAUSE}", "TogglePause")
While 1
    Sleep(100)
WEnd

Func Start()
While 1
Send("{F5}")
Do
Sleep(100)  
Until StatusBarGetText("- Microsoft Internet Explorer")="Done"
WEnd
EndFunc

Func TogglePause()
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('You have paused the script! Please hit Pause/Break to resume refreshing this page!',0,0)
    WEnd
    ToolTip("")
EndFunc

HKTunes:Softpedia | GoogleCodeLyricToy:Softpedia | GoogleCodeRCTunes:Softpedia | GoogleCodeMichtaToolsProgrammer n. - An ingenious device that turns caffeine into code.

Share this post


Link to post
Share on other sites
Guest Psychoticdenial

ty!! ill try it right away :(

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...