Jump to content

Why does this fall over ?


MattX
 Share

Recommended Posts

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

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

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