Jump to content

winexist and locked session


Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...