Sign in to follow this  
Followers 0
mumdigau

Processwaitclose

6 posts in this topic

Hi,

a few days ago ProcessWaitClose stopped functioning. The process is being recognized by ProcessExists, but can't be stopped neither by name nor PID syntax.

I thougt this might be related to the process itself, but a small test with notepad.exe showed the same behaviour.

I have no idea how to solve that. Perhaps someone out there has some advice for me. Many thanks in advance.

mumdigau

Share this post


Link to post
Share on other sites



Can u post script here?


_____________________________________________________"some people live for the rules, I live for exceptions"Wallpaper Changer - Easily Change Your Windows Wallpaper

Share this post


Link to post
Share on other sites

Hi,

a few days ago ProcessWaitClose stopped functioning. The process is being recognized by ProcessExists, but can't be stopped neither by name nor PID syntax.

I thougt this might be related to the process itself, but a small test with notepad.exe showed the same behaviour.

I have no idea how to solve that. Perhaps someone out there has some advice for me. Many thanks in advance.

mumdigau

Are you saying that you are trying to use ProcessWaitClose() to close a process?

Share this post


Link to post
Share on other sites

...a few days ago ProcessWaitClose stopped functioning. The process is being recognized by ProcessExists, but can't be stopped neither by name nor PID syntax...

ProcessWaitClose() isn't supposed to close the process, it's supposed to wait for it to close. Use ProcessClose() for that purpose.

[u]My UDFs[/u]Coroutine Multithreading UDF LibraryStringRegExp GuideRandom EncryptorArrayToDisplayString"The Brain, expecting disaster, fails to find the obvious solution." -- neogia

Share this post


Link to post
Share on other sites

Quick help. Many thanks.

Indeed, I used ProcessWaitClose to close the process and wait until it's gone. Thought its behaviour is similar to RunWait. When I add ProcessClose just before ProcessWaitClose, the script is functioning again.

Still wondering why the script was functioning before without ProcessClose.

mumdugau

Share this post


Link to post
Share on other sites

Quick help. Many thanks.

Indeed, I used ProcessWaitClose to close the process and wait until it's gone. Thought its behaviour is similar to RunWait. When I add ProcessClose just before ProcessWaitClose, the script is functioning again.

Still wondering why the script was functioning before without ProcessClose.

mumdugau

ProcessClose() will kill the process... are you sure thats what you want ?

Normally you would want to wait till the program you start ends in a normal fashion....


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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