Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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.

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
×
×
  • Create New...