Sign in to follow this  
Followers 0
Simbo0o

Open When Closed

3 posts in this topic

Here's the deal...I have a program that closes it self. I want to make a script that opens the program if closed.

Share this post


Link to post
Share on other sites



This ought to get you started...

While True
    $programPID = ProcessExists("program.exe")

    If $programPID == 0 Then
        Run("C:\Program Files\program\program.exe")
    EndIf 

    Sleep(1000)
WEnd

Share this post


Link to post
Share on other sites

Hi there,

while 1

if Not ProcessExists("notepad.exe") Then
    run("notepad.exe")
EndIf

sleep (500)

wend

Just a way to do. Next time spend a little time searching in the great and usefull AutoIT Help, you'll be suprised what you can learn there.

Cheers.


Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Share this post


Link to post
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
Sign in to follow this  
Followers 0