gilk Posted January 16, 2005 Share Posted January 16, 2005 is there a way to get the last active window title , when the computer is locked i.e. the "press Alt+Ctrl+delete to unlock this computer" massage is active ? I'm trying to execute WinClose or WinKill on the window "behind" the lock screen and can't get the title. I tried : WinGetTitle("") it works only when the computer is unlocked....... Link to comment Share on other sites More sharing options...
Andre Posted January 16, 2005 Share Posted January 16, 2005 Why u want to close the "locked" screen window ? What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel! Link to comment Share on other sites More sharing options...
gilk Posted January 16, 2005 Author Share Posted January 16, 2005 Andre, I wrote a "housekeeping" script that executes disk Defrag and Cleanup on schadule (during the night when the user is not working), to execute these programs safely I want to close all the open windows, problem is that a group policy enforces a computer lock when the computer is idle for more then 15 minutes, so this way when the schaduled task launches the computer is in lock status.... Gilk Link to comment Share on other sites More sharing options...
Andre Posted January 16, 2005 Share Posted January 16, 2005 Hi Gilk, Now i understand what u want. But closing the windows without any user notify is not a nice way i think. It could be that someone has unsaved work and u close it then. Why not run it with the programs open ? Windows is MultiTasking in a way...... Andre What about Windows without using AutoIt ?It would be the same as driving a car without an steering Wheel! Link to comment Share on other sites More sharing options...
gilk Posted January 17, 2005 Author Share Posted January 17, 2005 Hi Andre, U are right, closing an application with unsaved files is highly undesirable, the way I wrote the script is that if the applications pops up the "save - yes,No,Cancel" , then the script terminates and does not close the application. I'm currently testing the script without closing open applications, But I'm not sure that defragmenting a disk is safe enough with other application still active... Cheers, gilk Link to comment Share on other sites More sharing options...
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