Hi there, this is supposed to work as a toast, called by functions and such. Kinda looks like the windows 10 notification, as intended, and the only problem is that i can't find a way to hide the taskbar button. Opt("WinSearchChildren", 1)
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
HotKeySet("{ESC}", "Terminate")
Local $hParentWin, $hChildWin, $aMsg
$hParentWin = GUICreate("Parent GUI", 200, 100)
GUISetState(@SW_SHOW)
$hChildWin = GUICreate("Child GUI", 360, 65, @DesktopWidth + 400, @DesktopHeight - 106, $WS_POPUP, $WS_EX_APPWINDOW+$WS_EX_TOPMOST)
GUISetBkColor(0x1F1F1F, $hChildWin)
GUICtrlCreatePic(@ScriptDir&'\Info.bmp', 8, 8, 48, 48)
$Title = GUICtrlCreateLabel('Title', 70, 10, 250, 25)
GUICtrlSetFont($Title, 14, 900, 0, 'Arial', 5)
GUICtrlSetColor($Title, 0xFFFFFF)
GUICtrlSetBkColor($Title, 0x1F1F1F)
$Text = GUICtrlCreateLabel('Text', 70, 35, 250, 25)
GUICtrlSetFont($Text, 10, 600, 0, 'Arial', 5)
GUICtrlSetColor($Text, 0x707070)
GUICtrlSetBkColor($Text, 0x1F1F1F)
GUISetState(@SW_SHOW)
Show()
Func Show()
WinMove($hChildWin, '', @DesktopWidth - 360, @DesktopHeight - 106, 360, 65, 1)
ConsoleWrite('Show - ' & @MSEC & @CRLF)
EndFunc ;==>Show
Func Hide()
WinMove($hChildWin, '', @DesktopWidth + 400, @DesktopHeight - 106, 360, 65, 1)
ConsoleWrite('Hide - ' & @MSEC & @CRLF)
EndFunc ;==>Hide
While 1
Sleep(300)
WEnd
Func Terminate()
Exit
EndFunc ;==>Terminate
Info.bmp