Sign in to follow this  
Followers 0
lafarigoule

DELPHI and AutoiT

3 posts in this topic

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

Share this post


Link to post
Share on other sites



oAutoIt.WinWaitActive('[HANDLE:' + hWnd + ']', "Some text on the window that signifies it is ready")

Share this post


Link to post
Share on other sites

oAutoIt.WinWaitActive('[HANDLE:' + hWnd + ']', "Some text on the window that signifies it is ready")

Thank's, it works very well!!!

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