program1 = C:\Programme\Calvin\Calvin.exe # program2 = C:\... delay = 2 ; delay time in seconds before starting the program after waking up from suspend mode #SingleInstance, Force #NoTrayIcon OnMessage(0x218, "func_WM_POWERBROADCAST") Return func_WM_POWERBROADCAST(wParam, lParam) { global If (lParam = 0) { ; PBT_APMSUSPEND or PBT_APMSTANDBY? -> System will sleep If (wParam = 4 OR wParam = 5) { ; Add commands here that will be executed BEFORE Standby- or Suspend-mode is entered } ; PBT_APMRESUMESUSPEND oder PBT_APMRESUMESTANDBY? -> System wakes up If (wParam = 7 OR wParam = 8) { ; ; Add command here that will be executed AFTER waking up from Standby- or Suspend-mode sleep, %delay%000 Run, %program1% # Run, %program2% } } return } exitapp