Jump to content

Recommended Posts

Posted

Hi,

I want to make a script that monitors a screen. When this shuts down it must start the program again. Ik the link properties of the program there is a working dir. But when I use the run command with workingdir it doesn't work. What am I doing wrong ?

Here is the script.

;Options

AutoItSetOption("WinTitleMatchMode", 3)

;Begin of the while loop.

While 1=1

;Wait for Concerto Rijswijk Centrale is closing

WinWaitClose("Rijswijk Centrale")

;Starting Concerto Rijswijk Centrale

Run ("d:\alsprog\newapp\alswish\alswish.exe" , "d:\alsprog\newapp\WWW")

;Wait for 4 seconds

Sleep(4000)

;Closing of the loop

Wend

Posted

not sure what's wrong may be the alswish.exe program itself.

Difficult to help you without the specific program and the knowlegde of what it is doing :">

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...