How to launch any application after resuming from hibernation?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How to launch any application after resuming from hibernation? Any settings
in task manager doesnt work :(
Is it anyhow possible (or even in *.vbs)?

thx
 
maysider said:
How to launch any application after resuming from hibernation? Any
settings
in task manager doesnt work :(
Is it anyhow possible (or even in *.vbs)?

thx
 
maysider said:
How to launch any application after resuming from hibernation? Any
settings
in task manager doesnt work :(
Is it anyhow possible (or even in *.vbs)?

thx

Double click the program's icon to start it / them.
 
The script must be running before you go to Hibernation.
It "catches" both Hibernation and Standby.

VBS Script:

'Start
Set oShell = CreateObject("WScript.Shell")

Set colMonitoredEvents = GetObject("winmgmts:")._
ExecNotificationQuery("Select * _
from Win32_PowerManagementEvent")
Do
Set oSuspend = colMonitoredEvents.NextEvent
If oSuspend.EventType = 7 Then
MsgBox "Resumed from Suspend"
End If
Loop

'End

More information:
Win32_PowerManagementEvent
http://msdn.microsoft.com/library/d...-us/wmisdk/wmi/win32_powermanagementevent.asp

Hope this helps.

Regards,
Matija Hrovat
 
Back
Top