Cheating Network
 
 

Go Back   Cheating Network > General Computing > Programming
Reload this Page [AHK] how to make a 'time out' subroutine?



Programming

This is a discussion about [AHK] how to make a 'time out' subroutine? within the Programming section, where you will Anything related to programming or scripting should go here.



Reply
 
LinkBack Thread Tools Display Modes
Old 04-24-2008, 10:47 AM   #1 (permalink)
Senior Member
 
Join Date: Dec 2007
Posts: 383
Reputation: 1
emi_mockingbird is an unknown quantity at this point
Default [AHK] how to make a 'time out' subroutine?

i want to use a 'timeout' to check for errors in a process, how can i do this?
emi_mockingbird is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2008, 12:33 AM   #2 (permalink)
Senior Member
 
Join Date: Dec 2007
Posts: 383
Reputation: 1
emi_mockingbird is an unknown quantity at this point
Default

bum
emi_mockingbird is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2008, 12:35 AM   #3 (permalink)
Global Moderator
 
itami's Avatar
 
Join Date: Dec 2007
Posts: 2,396
Reputation: 77
itami will become famous soon enough
Default

Timeout? Umm...describe please.
__________________




"As democracy is perfected, the office of President represents, more and more closely, the inner soul of the
people. On some great and glorious day the plain folks of the land will reach their heart's desire at last and
the White House will be adorned by a downright moron."

H.L. Mencken, The Baltimore Evening Sun, July 26, 1920
itami is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2008, 09:09 PM   #4 (permalink)
Senior Member
 
Join Date: Dec 2007
Posts: 383
Reputation: 1
emi_mockingbird is an unknown quantity at this point
Default

for example, a page fails to complete the loading and gets a error, the subroutine will hit 'back' and try to load the page again. I need the timer to activate the subroutine. eg, if 30sec have passed and page still isnt done loading, igo to subroutine.
emi_mockingbird is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-26-2008, 09:37 PM   #5 (permalink)
Senior Member
 
Seatbelt99's Avatar
 
Join Date: Dec 2007
Location: Grand Rapids, MI
Posts: 1,069
Reputation: 68
Seatbelt99 will become famous soon enough
Send a message via AIM to Seatbelt99 Send a message via MSN to Seatbelt99
Default

I am not often here checking posts so if you need more info on this feel free to IM me. ChairRestraint66 on AIM, mlevanduski@hotmail.com on MSN, or mlevanduski@gmail.com on gTalk. Here you go, I am 90% sure this is what you want and it will work, but it is untested.

Code:
#Persistant   ; This is important for using timer scripts
SetTimer, ErrorCheck1, 30000  ;ErrorCheck1 is a label it will jump to every 30 seconds
return ;required after set timer i guess

ErrorCheck1:   ; everything from here to the next return runs every 30 seconds
statusBarGetText, Status,, WinTitle    ; Status is the variable storing the stauts bar results, Win Title I hope you know but if not IM me.
If Status = Done
{
       sleep, 100
}
Else
{
       Send, {F5}    ; to refresh the page, you can put in code to go back and try again if you think it is better. 
}
return
ok, that "Should" work. As I said, it is untested and all that. If you have any trouble IM me as I likely won't see this thread again any time soon.

Good luck bro!
__________________

Last edited by Seatbelt99; 04-26-2008 at 09:43 PM.
Seatbelt99 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
ahk, make, subroutine, time


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
what had been taking all my time... hobdiddy Club Live 84 05-13-2008 10:02 AM
Woot Off time!!! ahage16 Hot Deals 2 05-08-2008 03:56 PM
Party Time. 2+2=OVER9000 Chit Chat 6 02-29-2008 05:10 PM


Powered by vBulletin
Copyright © 2000-2008 Jelsoft Enterprises Limited.
Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.