kiboost Posted July 29, 2011 Share Posted July 29, 2011 Hi, I'm not sure what the problem is and would need some clarification. I usually avoid all send and mouseclick, to use only controlsend, controlclick so it works even if the window is not active. Now I have a script I want to run, but it runs when the session is locked (win7x64pro). If the session isn't lock, the script works perfectly. So, does winexist works with locked session ? If not, what to use instead ? Here's the script : Opt('WinTitleMatchMode', 2) if WinExists("- xxx.exe") Then ControlSend("- xxx.exe", "", "", "^C exit{enter}") EndIf the "- xxx.exe" is a cmd window. Thks Kib Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79 Link to comment Share on other sites More sharing options...
kiboost Posted July 29, 2011 Author Share Posted July 29, 2011 ok, doing some debug, the winexist() works. So it seems the controlsend doesn't work when session is locked ? Strange ... Win7 pro x64. scripts compiled to x64. - Autoit v3.3.6.1 | Scite 1.79 Link to comment Share on other sites More sharing options...
KThorn Posted August 4, 2011 Share Posted August 4, 2011 I am having the same issue, script works when not locked but not when server is locked. Let me know if you figure it out.ok, doing some debug, the winexist() works. So it seems the controlsend doesn't work when session is locked ? Strange ... Link to comment Share on other sites More sharing options...
monoscout999 Posted August 4, 2011 Share Posted August 4, 2011 (edited) Read this link Link! Edited August 4, 2011 by monoscout999 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