Jump to content

gilk

Members
  • Posts

    9
  • Joined

  • Last visited

Everything posted by gilk

  1. Thanks, I'll try that' and anyway it opens up a lot of new optios gilk
  2. Thanks for the advice but I'm working with a Win2K network (800 clients) and the AT command is not strong enough for the required options gilk
  3. Hello fellow AutoITers Ive been trying to automate the creation of a scheduled task.. To do that I want to verify that the task doesnt already exist, So I tried searching the list of scheduled tasks with the following: But no matter if the task exists or not and where it is in the list of tasks, the returned value is always 1 Ideas anyone ? gilk
  4. I wrote a housekeeping script that launches Defrag and CleanUp and extracts some information into a log file, I put the compiled script in a shared directory on the server and created a daily schaduled task on some client computers, curioussly the scripts executes perfactly for some users and it terminates for others after it started (the log exist but have only the start time), what is even more puzzling is that it's not the same users every day ! Any one have an idea what am I doing wrong or what else can I try ?? Thanks, Gilk
  5. 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
  6. 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
  7. 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.......
  8. Hey DirtyBanditos, Thnx for the tip - it is useful for other stuff I'm thinking of, but it doesn't solve the main problem i.e. closing active windows (not the OS , but the applications) when the computer is locked All the best gilk
  9. I'm trying to run a housekeeping script that executes cleanup,defrag and some other tasks at night. For safety reasons I want all the active windows to close (unless there is unsaved files, in which case I want the script to terminate). the problem is that the computers lock i.e. the Win2K login screen is activated. I tried the following : for $j=1 to 5 For $i = 1 to 20 Step 1 $title=WinGetTitle("") if $title="Program Manager" then ExitLoop(1) ;;; prevent shutdown WinClose($title) $success=WinWaitClose($title,"",10) if $success=0 then ExitLoop(1) ;;;; to prevent loss of unsaved files Next Next it works when the computer is not locked, but will not do the job when locked. I don't want to use winkill because it may cause loss of unsaved files advice anyone ?
×
×
  • Create New...