blackman12 Posted June 25, 2010 Share Posted June 25, 2010 ; terminate a script right [i]before[/i] a user shuts ; VicTT Global $WM_QUERYENDSESSION = 0x0011 Func InterceptShutdown($hWnd, $msg, $w, $l) ;buraya yapılacak işlem örneğin mesaj vermek yada SoundPlay ile bir veda sesi çalmak.;) MsgBox(0, "", "Shutting down") EndFunc ;==>InterceptShutdown GUIRegisterMsg($WM_QUERYENDSESSION, "InterceptShutdown") While 1 Sleep(10) WEnd[/CODE] Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.