flcdrg / au-packages

David's Chocolatey Automatic Packages
MIT License
18 stars 54 forks source link

Add timeout to AHK script for ubiquiti-unifi-controller #14

Closed flcdrg closed 6 years ago

flcdrg commented 7 years ago

Comment from @pauby

There is no timeout in your WinWait commands in your AHK file so it will sit and wait forever if it doesn't see the Unifi Setup window. And each time you run the install it will spawn another AHK instance with your script.

I add a timeout of 90 seconds to all my AHK scripts. In your case it would be:

WinWait, UniFi Setup,, 90