spop12 Posted January 18, 2007 Posted January 18, 2007 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
herewasplato Posted January 18, 2007 Posted January 18, 2007 (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 ? thanksWelcome 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 January 18, 2007 by herewasplato [size="1"][font="Arial"].[u].[/u][/font][/size]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now