Es gibt verschiedene Möglichkeiten, Infos an den User vor dem Monitor weiterzugeben.
; Messagebox – Programm wird erst nach schließen der MsgBox oder nach 15 Sek. fortgeführt
$Timeout = 15
MsgBox(4096, "Info", "Dies ist eine MessageBox." & @CRLF & "Sie verschwindet automatisch nach " & $Timeout & " Sekunden.",$Timeout)
; Tooltip – kann positioniert werden und ist parallel zum Programmablauf sichtbar
$PosX = 300
$PosY = 200
$Title = "Tooltip-Titel"
$Icon = 1 ; 0 = No icon, 1 = Info icon, 2 = Warning icon, 3 = Error Icon
$Option = 4
;~ [optional] Sets different options for how the tooltip will be displayed (Can be added together):
;~ 1 = Display as Balloon Tip Requires IE5+
;~ 2 = Center the tip at the x,y coordinates instead of using them for the upper left corner.
;~ 4 = Force the tooltip to always be visible confining it to monitor borders if necessary. If multiple monitors are used, then the tooltip will "snap-to" the nearest monitor.
ToolTip("Dies ist ein Tooltip", $PosX, $PosY,$Title, $Icon, $Option)
Sleep(2000) ; Sleep 2 sec. to give tooltip time to display
MsgBox(4096, "Info", "Dies MessageBox wird während des Tooltips angezeigt.",20)
Sleep(2000) ; Sleep 2 sec. to give tooltip time to display
ToolTip("") ; schließt bzw. löscht den Tooltip
; Traytip – funktioniert nicht unter Windows 7
TrayTip("TrayTipTitle", "Ich bin ein TrayTip", 15, 1)
MsgBox(4096, "Info", "Weiter mit OK.")
TrayTip("Alle TrayTips löschen", "", 5, 2)
TrayTip("TrayTipTitle", "Ich bin ein weiterer TrayTip", 15)
Sleep(5000)