Sign in to follow this  
Followers 0
spop12

winactive and locked computer

2 posts in this topic

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



#2 ·  Posted (edited)

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  
Followers 0