Sign in to follow this  
Followers 0
Prabhu

AutoIt failing to get initialize.

7 posts in this topic

I try to invoke AutoIt from a perl script as follows:

D:\>perl AutoIt.pl

The perl script is as follows:

`D:\\AutoIt F1.au3`;

The script F1.au3 sends {F1} to a application :

WinWaitActive("Control Panel")

Send("{F1}")

When I execute the perl script I get an error: Application failed to initialize properly (0xc0150004).

However if on the command line if I do the following it is successful.

D:\>AutoIt F1.au3

What could be the reason for failure.

I use windows XP. Weirdly I observed that the running from perl script is successful when I try it in another machine..

Please advise.

Share this post


Link to post
Share on other sites



Probably because .au3 is not an executable file. When you "run" an .au3 file actually AutoIt3.exe is started. Try starting AutoIt3.exe with your au3 file as first parameter in your Perl script.

Share this post


Link to post
Share on other sites

Manader,

I do indeed run it with AutoIt.exe. The following one line is in perl script.

`D:\\AutoIt3 F1.au3`

It fails. However from command line as below the same passes

D:\>AutoIt3 F1.au3

Share this post


Link to post
Share on other sites

I tried AutoIt3.exe with au3 file as first parameter in Perl script. The same issue persists..

perl -e "'F1.au3 AutoIt3.exe';"

Share this post


Link to post
Share on other sites

Zedna, I tried that as well. didn't help.

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