Jump to content

Recommended Posts

Posted

Hello,

I am using AutoIT to send hotkeys to various software instances/windows and also over network linked IP addresses of other machines and their associated software to synchronize functions for a project. The host computer is a Windows PC with a fairly heavy load of resources when all software is running. I notice that ~90% of the time, the AutoIT program works as intended. But occasionally something happens where the hotkeys are not acted upon by one of the two instances of software on the host machine that are awaiting commands. The fact that the program works most of the time, and only fails for a subset of instances on the host machine has me scratching my head - the instances on the client machines work just fine.

I’ve attached my code and would appreciate any thoughts on how to troubleshoot and any ideas as to what might be going wrong. Because of the fairly high host computer resources, my thought is that some of the commands might be getting pushed to a lower priority in Windows which causes the occasional issues when resources are particularly high. My next step was to pursue this using ‘ProcessSetPriority()’ but I may be going down the wrong path. Additionally, I have tried adding CPU wait instructions between specific software commands, but I haven’t noticed any changes in behavior. It is difficult to troubleshoot because of the rarity and randomness of the behavior so any thoughts are welcome.

Thanks,
Nick

Program_Sync.au3

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...