mentosan Posted April 17, 2009 Share Posted April 17, 2009 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 Link to comment Share on other sites More sharing options...
mentosan Posted April 17, 2009 Author Share Posted April 17, 2009 And of course the process is active, checked via Task Manager Link to comment Share on other sites More sharing options...
Hawkwing Posted April 17, 2009 Share Posted April 17, 2009 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. Link to comment Share on other sites More sharing options...
mentosan Posted April 17, 2009 Author Share Posted April 17, 2009 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. Link to comment Share on other sites More sharing options...
mentosan Posted April 17, 2009 Author Share Posted April 17, 2009 And If I'm using ShellExecuteWait() instead of ShellExecute() and ProcessWait() the result is still not ok. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now