2014-07-05, 12:14
(2014-07-05, 01:08)Jkruger Wrote: You are a star,
Could it be checked before system sleep, what ever is causing it even the power button?
Yes. Code from line 414 to 461 does it. This is what you need:
Code:
OnMessage(0x218, "WM_POWERBROADCAST")
WM_POWERBROADCAST(wParam, lParam)
{
If (wParam=4) ;suspend
{
Process, Exist, xbmc.exe ; check if xbmc.exe is running
If (ErrorLevel > 0) ; If it is running
{
;your code
}
}
}