Sign in to follow this  
Followers 0
mentosan

ProcessWait ()

5 posts in this topic

Hi guys !

I want to use ProcessWait() function in my script rather than Sleep(). After this command I'm sending some commands to the active window using (WinActivate(), WinWaitActive(), ControlSend). Everything works fine with Sleep() but with ProcessWait() the script gets stuck.

Do you have an ideea what it could be ?

Thx

Share this post


Link to post
Share on other sites



And of course the process is active, checked via Task Manager

Share this post


Link to post
Share on other sites

Are you running the compiled script? If you run it without compiling it, the process will be AutoIt3.exe. Whats the point of using processwait instead of sleep anyway?


The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

Share this post


Link to post
Share on other sites

I open another application with ShellExecute() which will connect on the network.

Then I'm using ProcessWait() for the opened application.

Then I'm sending commands to the opened application.

I want to use ProcessWait() instead of Sleep() because I will use the script on different computers where time to connect on the network may differ.

Share this post


Link to post
Share on other sites

And If I'm using ShellExecuteWait() instead of ShellExecute() and ProcessWait() the result is still not ok.

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