Ok so im trying to automate an app running as a service. I am using ServiceShell to make a standard app run as a windows service. That seems to be working fine because the service starts and i can see that its running by looking at task manager/Processes The service says its running under the SYSTEM user. Naturally this is hidden from view so my real question is once my script runs and starts the app as a service is there a way to @sw_show the application. Opt("TrayIconDebug", 1) ; Puts debug in the tooltip
Run("C:\Atandra\T-HUB10\Turbo.THUB.UIProcessing.exe")
While 1
If Not WinExists("Login", "") Then
sleep(50)
Else
Do
ControlClick("Login", "&Login", "[CLASSNN:WindowsForms10.BUTTON.app.0.3ce0bb81]")
sleep(500)
Until Not WinExists("Login", "")
ExitLoop
EndIf
sleep(1000)
WEnd This is the EXE that is being run as a service, ultimately i would like to have the last "Sleep(1000)" piece of code actually make the application visible to the user logged in, or can i not do this?