I've got a small application installed that runs on log in. Once I log in, I either have to click "Connect" or press "Enter" within the program for this program to start working. I'm looking for an automated way to press enter after the computer starts up.
I've contacted the developer to have an option to connect on the program launch, but this feature is several months away at best.
I appreciate any insight!
**Edit: It turns out this form does not have a default button setup. To get around this, I've attempted to tab to the correct control then press space.
WinWait, **The Window Title**
Send, {Tab}
Send, {Tab}
Send, {Tab}
Send, {Tab}
Send, {Space}
The problem is, I'm hitting a race condition. Sometimes the form hasn't been fully written to the screen yet, so the tab commands aren't getting to the right button on the form. Is there some way to wait a second for the form to finish loading, after the WinWait command to allow it to be written? One second would be more than enough.
Thanks!