Jump to content

Windows 10 Close Toast Notifications


Recommended Posts

Hi,

This is what Window Info tells me:

>>>> Window <<<<
Title:  Neue Benachrichtigung
Class:  Windows.UI.Core.CoreWindow
Position:   664, 596
Size:   360, 132
Style:  0x94000000
ExStyle:    0x00200008
Handle: 0x0002023C

>>>> Control <<<<
Class:  
Instance:   
ClassnameNN:    
Name:   
Advanced (Class):   
ID: 
Text:   
Position:   
Size:   
ControlClick Coords:    
Style:  
ExStyle:    
Handle: 

>>>> Mouse <<<<
Position:   846, 671
Cursor ID:  0
Color:  0x1F1F1F

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<


>>>> Hidden Text <<<<

I want to automatically close the Notifications while installing.

This is what I have and is not working:

Local $hWnd = WinGetHandle("[CLASS:Windows.UI.Core.CoreWindow]")
    MsgBox(0,"",$hWnd)
    WinClose($hWnd)
    Local $hWnd2 = WinGetHandle("Neue Benachrichtigung")
    MsgBox(0,"",$hWnd2)
    WinClose($hWnd2)

I dont know how to close it, it even appears in front of my splashimage.

All handles are: 0x00000000

Can anyone help me please?Thanks

Edited by marabunta
Link to comment
Share on other sites

Also, if by any chance the other program with the toast you do not want to see is an autoit script as well, you can just use this to close the toast.

;Creates Toast, Like a toaster.
TrayTip("Toast", "I am yummy. You want to eat me but you can't for I am just pixels. =(", 5)
Sleep(1000)

;Closes Toast.
Opt("trayiconhide", 1);Momentarily hides AutoIt Tray Icon as TrayTip cannot function without a tray icon.
Opt("trayiconhide", 0);Re-enables AutoIt Tray Icon.

;Check Results
MsgBox(0, "CloseToast", "Toast should have closed.")

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...