#include 'Notify.au3'
Opt('TrayAutoPause', 0)
; Press ESC to exit script
HotKeySet('{ESC}', 'On_Exit')
Global $fNot_1_Vis = True, $iBegin = 0
; Register message for click event
_Notify_RegMsg()
; Set notification location
_Notify_Locate(1)
; Change them all again
_Notify_Set(0, 0xFFFFFF, 0x7A00F2, 'Arial', True, Default)
; This one is clickable, but will only remain in the margin until clicked
$hNot_1 = _Notify_Show(0, '', 'GANIBAL95 (G:)' & @CRLF & 'Возникла проблема с этим диском')
While 1
Sleep(10)
If Not WinExists($hNot_1) And $fNot_1_Vis = True Then
$iBegin = TimerInit()
$fNot_1_Vis = False
EndIf
WEnd
Func On_Exit()
Exit
EndFunc ;==>On_Exit