MattX Posted February 7, 2005 Share Posted February 7, 2005 When I run this - the error I get when I quit the program - [ MEXBR.exe - when it sees the 'Quit' window ] is as follows: Line 0 (File "P:\Music Explorer\ musexplorer.exe"): WinWait("Quit") Then WinWait("Quit) ERROR Error: Illegal text at the end of statement ( one statement per line ) Is this because I have two Winwait statements ? [ The Vidres is a vid res changing prog ] - that part works - I need to change the res back to the normal res once the prog finishes which is why I am waiting for the quit window. Code is as follows: ; AutoIt Version: 3.00 ; Language: English ; Platform: WinXP ; Author: Matt ; Script Function: Music Explorer Launcher SplashTextOn("Launch Program For Music Explorer. By Matt", "Getting ready to Launch Music Explorer. Please wait...", 300, 75) Sleep(3000) SplashOff() Run('\\stjohns01\apps\Vidres\vidres /H800 /V600') If Not FileExists('C:\windows\system32\impac_m1.dll') Then Run('\\stjohns01\apps\Music Explorer\music explorer.cmd') Sleep(7000) Run('\\stjohns01\apps\Music Explorer\MEXPLORE\MEXBR.exe') WinWait("Quit") Then Send("{ENTER}") Sleep(2000) Run('\\stjohns01\apps\Vidres\vidres /H1024 /V768') Exit Else Run('\\stjohns01\apps\Music Explorer\MEXPLORE\MEXBR.exe') WinWait("Quit") Then Send("{ENTER}") Sleep(2000) Run('\\stjohns01\apps\Vidres\vidres /H1024 /V768') Exit EndIf Link to comment Share on other sites More sharing options...
CyberSlug Posted February 7, 2005 Share Posted February 7, 2005 Get rid of Then. You only want WinWait("Quit") on the line Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
MattX Posted February 7, 2005 Author Share Posted February 7, 2005 Get rid of Then. You only want WinWait("Quit") on the line<{POST_SNAPBACK}>THANKYOU !!! Works great now. Thats a pint I owe if I ever meet you. Link to comment Share on other sites More sharing options...
Andre Posted February 7, 2005 Share Posted February 7, 2005 Hi, Try to use the Scite4AutoIt. It containts the AutoIt syntac checker. Run it before compile..... Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel! Link to comment Share on other sites More sharing options...
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