SublimePorte Posted July 27, 2010 Share 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 Link to comment Share on other sites More sharing options...
ltguide Posted July 27, 2010 Share 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 Link to comment Share on other sites More sharing options...
SublimePorte Posted July 27, 2010 Author Share 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now