Jump to content
Sign in to follow this  
kiboost

winexist and locked session

Recommended Posts

kiboost

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

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

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

Read this link

Link!

Edited by monoscout999

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.