This would be very practical when running installs etc. At present I use psshutdown.exe -l, but it would be so much more elegant to do the lot in AutoIt.
Cheers
Nobby
Posted 04 August 2004 - 03:09 AM
Posted 04 August 2004 - 03:16 AM
Posted 04 August 2004 - 03:57 AM
Posted 04 August 2004 - 03:43 PM
That doesn't work on 2k... Though does lock XP machines...I know the windows key+ l will bring you to the user log in screen (which is the XP version of locking the screen.) It's been a while since I've used 2000, but this might work on that version as well.
that should work for all... and cool, been meaning to look that one up.Run("rundll32.exe user32.dll,LockWorkStation") ;another method
info from http://www.jsiinc.com/SUBE/tip2000/rh2050.htm
Posted 05 August 2004 - 12:22 AM
Posted 26 August 2004 - 11:37 PM
Posted 27 August 2004 - 12:20 AM
After more searching I found the following posts which provide an answer: use ControlSend.Is there a way to send keys to a window/dialog box while the screen is locked?
-FF
Posted 27 August 2004 - 12:42 AM
Send("#l") Run("notepad.exe") WinWait("Untitled - Notepad") ControlSend("Untitled - Notepad","","Edit1",":;Hello from Notepad")
Posted 27 August 2004 - 01:09 AM
http://www.autoitscript.com/fileman/users/pekster/pekster%27s%20scripting%20index.htmlStrange behavior with ControlSend. If I send a ":" with the screen locked it gets turned into a ";".
Send("#l") Run("notepad.exe") WinWait("Untitled - Notepad") ControlSend("Untitled - Notepad","","Edit1",":;Hello from Notepad")
If I comment out the first line it works as expected and ":;hello from notepad" is seen in notepad window. Otherwise, ";;hello from notepad" is there.
I am running Win XP SP1 and AutoIt 3.0.102.
-FF
Posted 27 August 2004 - 02:02 AM
Thanks for the link. Unfortunately, this doesn't help me, because you are using Send to change the shift state, and this doesn't work when the screen is locked.http://www.autoitscript.com/fileman/users/pekster/pekster%27s%20scripting%20index.html
Posted 27 August 2004 - 02:20 AM
ControlCommand ("Untitled - Notepad","","Edit1","EditPaste",':;Hello')
0 members, 0 guests, 0 anonymous users