Jump to content
Sign in to follow this  
lafarigoule

DELPHI and AutoiT

Recommended Posts

lafarigoule

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
Richard Robertson

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

Share this post


Link to post
Share on other sites
lafarigoule

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.