Jump to content
Sign in to follow this  
Judical

RUN and WINWAIT with Perl

Recommended Posts

Judical

Sorry I'm kind of new to AutoIt

First of all and am unable to run a perl script using the RUN command.

This most likely isn't an AutoIt problem because the script attempts to run then gives me an error that doesn't make any sense.

Second WinWait isn't working for me when I execute a Perl script.

I want the AutoIt script to pause until the Perl script is finished, the perl script is running in a command prompt.

Any help is appreciated.

Share this post


Link to post
Share on other sites
qazwsx

can we see your code?

Share this post


Link to post
Share on other sites
Judical

I attached my current code.

I removed the runs and the winwaits because I wanted to get it working.

I would like to replace all the sleeps with winwaits and I would like to replace the #r with the run command.

Share this post


Link to post
Share on other sites
Reaper HGN

Sorry I'm kind of new to AutoIt

First of all and am unable to run a perl script using the RUN command.

This most likely isn't an AutoIt problem because the script attempts to run then gives me an error that doesn't make any sense.

Second WinWait isn't working for me when I execute a Perl script.

I want the AutoIt script to pause until the Perl script is finished, the perl script is running in a command prompt.

Any help is appreciated.

One thing to look at is how the PERL script is run.. If the PERL script runs in a command window and calls PERL to interpret the script, then the command window may actually be "done" doing what it needs to do and thus returns to AutoIt before the PERL script is done. If that is the case, you need to make the command window "wait" for the PERL script to finish before it can finish.

I hope that makes sense. I cant really tell without seeing all the scripts, but I have run into similar issues trying to kick off a PERL script from a CMD script, etc.

Hope that helps.

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  

×