Jump to content

Funcion REPEAT


 Share

Recommended Posts

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 :)

Link to comment
Share on other sites

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"?
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...