Jump to content

Recommended Posts

Posted

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

Posted

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

Jos

Thanks Jos,

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

Jim

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
×
×
  • Create New...