 }
 
 ShowOverlay(title, message, icon := "") {
-    global overlayVisible, overlayEnabled
+    global overlayVisible, overlayEnabled, hideOverlayDelay
     if(!overlayEnabled) {
         return
     }

Options() {
    global
    overlayEnabled := 1 ; 1 = enabled, 0 = disabled
}

;;;;;;;

    textColor := "303030"
    windowColor := "FFFFFF"
    SplashImage, % icon, B1 X%x% Y%y% W%width% H%height% ZH%iconSize% ZW%iconSize% CW%windowColor% CT%textColor%, % message, % title, ,
    SetTimer, HideOverlay, % -hideOverlayDelay
}

HideOverlay() {
