Hi,
Im new to Auto It .
I've written a couple of simple programs to interact with some third party windows software.
My program opens the software waits for the window to become active, moves the mouse over a few buttons with in the application and presses them.
When the buttons are pressed the application has to go out across a network and connect to a server. This process takes a variable amount of time. To make the script work I have just stuck a couple of long sleep statements in there. The problem with this is that if the network was ever really really slow the program would fail.
Is there a better way of doing this ?
When the application is finished loading it comes back with a message window and an ok button but this all happens within the applications main window. In otherwords its not windows xp pop window like you see in word excel and IE.
1) Rather that moving the mouse to a fixed set of cordinates X,Y and hoping theres a button there to press is it possible to just say go to the button labled "Foooo" in window "barrr" and press it.
2) Is there a better way of figuring out when an application has finished doing something rather that just using a time delay and hoping.
Thanks,
Mark.