marabunta

Windows 10 Close Toast Notifications

3 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



Is it possible to hide it with WinSetState("Neue Benachrichtigung","",@SW_HIDE)

See https://www.autoitscript.com/autoit3/docs/intro/windowsadvanced.htm and https://www.autoitscript.com/autoit3/docs/functions/WinSetState.htm


False Positive Reporter - Mass email all anti virus vendors with an attachment of your program for fast and easy whitelisting.

PortableApps.com App Creation Wizard  - A simple GUI-based Wizard for creating PortableApps.

SoundBoard - Play any song or sound you want at the press of a hotkey.

My GitHub Page: https://github.com/BetaLeaf

Share this post


Link to post
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.")

 


False Positive Reporter - Mass email all anti virus vendors with an attachment of your program for fast and easy whitelisting.

PortableApps.com App Creation Wizard  - A simple GUI-based Wizard for creating PortableApps.

SoundBoard - Play any song or sound you want at the press of a hotkey.

My GitHub Page: https://github.com/BetaLeaf

Share this post


Link to post
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