Jump to content

Bilgisayar Kapanırsa İşlem Yaptırma


blackman12

Recommended Posts

; 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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...