SublimePorte 0 Posted July 27, 2010 Hi, I am running a script on a server (win server 2003 64bit) which has no active session attached, meaning I'm logged in, but not attached to the server via rdp. I am using the following loop to ensure a button gets clicked when a certain app opens, but it's hit and miss. Sometimes it will click as soon as I attach to the server, even if it's been sitting for hours on end in that loop. The second it has my session attached, it clicks the button. A lot of the time it does work as expected, but it's an app that requires consistency, so needs to work 99.99% of the time. While ControlCommand($winID, "", $RunBtnID, "IsEnabled", "") == 1 WinActivate($winID) ControlClick($winID, "", $RunBtnID) Sleep(3000) Wend Share this post Link to post Share on other sites
ltguide 0 Posted July 27, 2010 (edited) You could leave the server always logged in (assuming it's in a secure room) and use VNC? Or try Run/scheduling logon.exe or combo with psexec remotely.Also, experiment with `mstsc /console` or `mstsc /admin` from command line to access session 0. Exact switch depends on version of rdp. Edited July 27, 2010 by ltguide Share this post Link to post Share on other sites
SublimePorte 0 Posted July 27, 2010 none of those suggestions are relevant. I don't have control over the server, physically or privilege-wise, I'm just an orderinary user. Share this post Link to post Share on other sites