Hi Guys
My solution to the above problem:
Part 1 is an Autoit script to send the PC into hibernation using
wizmo from www.grc.com. I have been messing around with autoit since
it was mentioned here a few weeks ago, you could easily do this with
powerpro of course :)
##Begin AutoIt script
[EMAIL PROTECTED] & @mon & @mday & @hour & ":" & @min
;Cannot hibernate if terminal has a TCP/IP connection
;to UNIX box so.......
;*** Make sure DejaWinT is closed ***
;*** If open boost to full screen ***
AutoItSetOption("WinTitleMatchMode",4)
WinSetState("classname=DEJAWINT","",@SW_MAXIMIZE)
if WinExists ( "classname=DEJAWINT") then
MsgBox(0, "", "DejaWinT Window exists")
else
FileOpen ( "c:\hibernate.log", 2 )
FileWriteline( "c:\hibernate.log", $timestamp )
Run(@ComSpec & " /c " & 'wizmo hibernate', "", @SW_HIDE)
endif
exit
##END
Part 2 is a powerpro script that just looks for the log file created
above , if it finds it it displays a messagebox.
##BEGIN2
sFileName = "C:\hibernate.log"
sOutput = MiscPlugin.fileinfo("size")
ifx (sOutput=="ERROR_FILE_ACCESS")
;do nothing
else
Tmess=readline("C:\hibernate.log",1)
exec prompt 14 &(Tmess)
file delete "C:\hibernate.log"
;Your Commands here
endif
##END2
Attach to scheduler that runs at 06:00 and runs if missed (I never
get in before 08:00) This seems to do the trick. Any thoughts??
Cheers
Steve
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/