Cherries Posted November 8, 2009 Posted November 8, 2009 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
BugFix Posted November 8, 2009 Posted November 8, 2009 (edited) Use "Run()" instead of your Send-construct. Edited November 8, 2009 by BugFix Best Regards BugFix
AdmiralAlkex Posted November 8, 2009 Posted November 8, 2009 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"? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now