Jump to content
Sign in to follow this  
Cherries

Funcion REPEAT

Recommended Posts

Cherries

Hey all, I created simple script:

#Include <FF.au3>

If _FFConnect() Then
    If _FFOpenURL("file:///C:/Documents%20and%20Settings/user.USER-CE85E927AF/Desktop/as.html") Then
    $sStringToSearch = "My DashBoard"
    EndIf
    _FFLoadWait()
    If _FFSearch($sStringToSearch) Then
        MsgBox(0,"Found:", $sStringToSearch)
    Else
        Send("#r")
WinWaitActive("Run")
Send("C:\Documents and Settings\user.USER-CE85E927AF\Desktop\ok.au3{Enter}")
    EndIf

Else
    MsgBox(64,"Error","Can't connect to FireFox")
EndIf

And I am using as repeat this:

Else
        Send("#r")
WinWaitActive("Run")
Send("C:\Documents and Settings\user.USER-CE85E927AF\Desktop\ok.au3{Enter}")

Maybe there is any other solution? Something like:

Else
Reapeat

or something ;). THX :)

Share this post


Link to post
Share on other sites
BugFix

Use "Run()" instead of your Send-construct. :)

Edited by BugFix

Best Regards BugFix  

Share this post


Link to post
Share on other sites
AdmiralAlkex

Maybe there is any other solution? Something like:

Else
Reapeat

or something ;). THX :)

So you want a loop? Then why don't you open the helpfile and read "Loop Statements"?

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.