3

in Windows 10 there are those gray notification boxes in the lower right corner. They come when you plug in a USB, when Updates were installed or when a virus was found by windows defender.

My question: How can i create these things? (with a custom message), if possible in vbs or batch as than they would be the easy to call from all programming languages. I know that this is possible as these boxes will also popup when someone pokes you in teamspeak.

Thank you for any answers!

infinitecode
  • 33
  • 1
  • 1
  • 7
  • Do you mean [notifications](https://msdn.microsoft.com/en-us/library/windows/desktop/ee330740%28v=vs.85%29.aspx) (have been around for ages)? – GSerg Jan 24 '16 at 20:25
  • Nope; thats the same like in Windows 7. I mean the dark-gray popups, they will be in a rectangle in the lower right corner and dont look like a speech bubble. I will look for pictures, if i find one ill post it. – infinitecode Jan 24 '16 at 20:28
  • theres a picture: http://media.askvg.com/articles/images5/Windows_10_Updates_Notification.png note that here the box is blue, because it will change depending on the style you have set for your pc – infinitecode Jan 24 '16 at 20:31

2 Answers2

15

An easier way to achieve windows8/10 notification toast is with Powershell.

[reflection.assembly]::loadwithpartialname("System.Windows.Forms")
[reflection.assembly]::loadwithpartialname("System.Drawing")
$notify = new-object system.windows.forms.notifyicon
$notify.icon = [System.Drawing.SystemIcons]::Information
$notify.visible = $true
$notify.showballoontip(10,"New Chat!","You have received New Chat!",[system.windows.forms.tooltipicon]::None) 

execute above script in powershell console.

Rajendra
  • 1,118
  • 15
  • 20
1

Those are toast notifications and they come from Universal Windows Apps.

Hear are couple of posts:

I don't think you can create them any other way than by creating a universal app.

Julian Knight
  • 4,716
  • 2
  • 29
  • 42
  • `I don't think you can create them any other way than by creating a universal app.` <- this is sad, if still valid today. I'll keep on looking. – Sam Sirry Jan 23 '23 at 12:06