Jump to content

Help with WinGetTitle please


gilk
 Share

Recommended Posts

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

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

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...