I have been trying to get an AutoIt script to run as a service.
I need to be able to monitor a Logon Window, and when the user has logged on, detect subsequent windows, and interact with them from the script, by clicking on buttons, sending keystrokes, launching new programs, etc.
But I can not get this work at all.
When I run a script as service, it can not see all of the desktop windows.
If I uncheck the "Allow Service to Interact with Desktop" the script can see more windows than if it is checked.
I have tried: the service.au3 code, srvany, and even Cygwin's cygrunsrv service wrapper.
Clearly, I am missing something.
Should I be able to interact with any open window from inside a script that is running as a service?
Can anyone explain why I can not use Winlist from a script running as a service?
Can someone provide an example as to how to run an autoit script as a service, detect when someone has logged on, and then launch a program, and then interact with it from inside the script.
Thanks for any help.