kiboost 1 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 Share this post Link to post Share on other sites
kiboost 1 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 Share this post Link to post Share on other sites
KThorn 0 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 ... Share this post Link to post Share on other sites
monoscout999 10 Posted August 4, 2011 (edited) Read this link Link! Edited August 4, 2011 by monoscout999 Share this post Link to post Share on other sites