Jump to content

Recommended Posts

Posted

i made a code like this:

$coord = PixelSearch (etc

If Not @error (for tot seconds ) Then func
    
        if @error Then

func2

        endif
    wend

does something like this exist?

Posted

Hi,

you can build your own loop around this.

So long,

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Posted (edited)

What? plz put english, not encoded words.

Look, I realize you're not an English speaker, natively, but you're demanding that we write code for you. No. Not going to happen.

If you build a man a fire, he's warm for a day... but if you set a man on fire, he's warm for the rest of his life!

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Posted

what?

plz put code not words

Well, this forum is more about helping you code it yourself.

1. Initialize a timer variable with TimerInit()

2. Setup a Do/Until loop where the 'Until' condition is TimerDiff() > x

3. Inside the loop, you want something to do ExitLoop if you get your @error or whatever else before the timeout

Hope that helps. Code it up, and if it doesn't work, post your code for more help.

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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
×
×
  • Create New...