lafarigoule Posted March 15, 2010 Share Posted March 15, 2010 I use AutoIt with Delphi and it works very well. But I have a problem with the send command. I want to open a very long AVI file. I use this command : procedure virtualdub_load(var hWnd: string;var videoname:string); begin oAutoIt.WinActivate('[HANDLE:' + hWnd + ']'); oAutoIt.Send('{ALT}fo'+videoname); end; Then I want to read some parameters in the interface. But the next instruction arrived before the end of the loading. So I have an error. I dont know how to block the command on "oAutoIt.Send('{ALT}fo'+videoname);" and wait the complete loading of my file. I will appreciate information on how to do that. Thank's Link to comment Share on other sites More sharing options...
Richard Robertson Posted March 15, 2010 Share Posted March 15, 2010 oAutoIt.WinWaitActive('[HANDLE:' + hWnd + ']', "Some text on the window that signifies it is ready") Link to comment Share on other sites More sharing options...
lafarigoule Posted March 15, 2010 Author Share Posted March 15, 2010 oAutoIt.WinWaitActive('[HANDLE:' + hWnd + ']', "Some text on the window that signifies it is ready") Thank's, it works very well!!! 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