Jump to content
Sign in to follow this  
spop12

winactive and locked computer

Recommended Posts

spop12

can winactive or winexists be use in a locked windows xp computer ?

is there any work around to do this, if you cant detect a windows or set focus ?

thanks

Share this post


Link to post
Share on other sites
herewasplato

can winactive or winexists be use in a locked windows xp computer ?

is there any work around to do this, if you cant detect a windows or set focus ?

thanks

Welcome to the forum.

Test the scenario for yourself using code like this:

WinActivate("Program Manager")
;Send("#l")
Sleep(2000)
Run("notepad")
WinWait("Untitled - Notepad")
If WinExists("Untitled - Notepad") Then Beep(500, 500)
Sleep(1000)
If WinActive("Untitled - Notepad") Then Beep(1500, 1500)
Run that once as is to see what happens and then remove the comment character ";" from this line:

;Send("#l")

and run the script again.

I think that you will find that you can use WinWait and WinExists but not any of the Win... functions that has Activate or Activate in them.

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

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.