Sign in to follow this  
Followers 0
jimfx

occasional interruption script-execution

4 posts in this topic

Hello,

I've made a couple of scripts for fun, It's fun to do but sometimes scripts don't perform as expected. I've noticed that sometimes the script halts and goes no further (e.g. when autoit has to wait for window 'Save as' I place a 'winwaitactive' command, and after that it needs to paste with 'Send ("^V")'. Sometimes at this point the script halts, and than I have to manually give it a 'CTRL V', the script then goes on with the rest.

I tried to put a couple of 'sleep' commands in it, but the problem still occurs sometimes.

Anyone has a suggestion what to do?

Many thanks in advance.

Jim

The Netherlands

Share this post


Link to post
Share on other sites



To better help others help you, post your code..


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

Try using WinWait() + WinActive() in stead of WinWaitActive().

Jos

Thanks Jos,

You mean the Winactive command in combination with an IF...THAN function?

Jim

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