Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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 ...

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
×
×
  • Create New...