Jump to content

Recommended Posts

Posted

That would depend on if the program had any command line options that closed it.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Posted

;run

Run("test.exe")

;sleep prog

sleep("3000")

;Close("test.exe")

....

<{POST_SNAPBACK}>

How about ProcessClose("test.exe")


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Posted

Try

$PID = ProcessExists("notepad.exe"); Will return the PID or 0 if the process isn't found.
If $PID Then ProcessClose($PID)


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Posted

I want actual this:

$PID = ProcessExists("notepad.exe"); Will return the PID or 0 if the process isn't found.

If $PID Then run("notepad.exe")

Sleep("3000")

ProcessClose($PID)

But he doesn't close..

Posted

This works for me.

$PID = ProcessExists("notepad.exe"); Will return the PID or 0 if the process isn't found.
If $PID=0 Then run("notepad.exe")
Sleep("3000")
ProcessClose("notepad.exe")

:whistle::dance::dance:


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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