It is currently April 16th, 2024, 1:40 pm

Windows Notification Toaster

Skins that control functions in Windows or Rainmeter
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

Re: Windows Notification Toaster

Post by kyriakos876 »

khanhas wrote: November 7th, 2018, 6:07 pm So make a function, probably is similar as EncodeVar, that null-check Rainmeter variable then return `<action ...></action>` code block as string if variable is available. Else returns a blank string or $null

Then use it in $ToastTemplate:

Code: Select all


...
<actions>
    <action content="$ButtonNameVar" arguments="$ButtonActionVar" activationType="protocol"/>
    $Button2
    $Button3
</actions>
Yes, I will try that hoping that it won't return an error. (some other stuff is to be consider but I think this can work)
khanhas wrote: November 7th, 2018, 6:22 pm About Listener API you posted earlier, you actually can use it Powershell:

Code: Select all

[Windows.UI.Notifications.Management.UserNotificationListener, Windows.UI.Notifications, ContentType = WindowsRuntime]

$listener = [Windows.UI.Notifications.Management.UserNotificationListener]::Current
$accessStatus = $listener.GetAccessStatus()

switch($accessStatus)
{
  "Allowed" { 
    $RmAPI.Log("Yay! Proceed as normal") 
  }
  "Denied" {
    $RmAPI.Log("Access denied")
  }
  "Unspecified" {
    $RmAPI.Log("Do something, idk")
  }
}
For some reason no matter what, this returns "Yay! Proceed as normal" even if I manually deny the permission... It could be something that I missed in Microsoft's documentation, I will take a closer look into it.

Again, thank you very much. I appreciate it!
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

Re: Windows Notification Toaster

Post by kyriakos876 »

Made some changes and updated the first post. :welcome:

Give me all your feedbacks!! :x
User avatar
kyriakos876
Posts: 919
Joined: January 30th, 2017, 2:01 am
Location: Greece

Re: Windows Notification Toaster

Post by kyriakos876 »

Fixed the issue where you had to refresh after adding/removing a button or adding/removing the progress bar.

Get version 8.11.2018.2 in the first post. :welcome:
soyelrafa
Posts: 96
Joined: March 1st, 2017, 3:09 pm

Re: Windows Notification Toaster

Post by soyelrafa »

Thank you for sharing this!! Thanks to this I can get information while I'm playing a game, something I can't achieve before, so thank you!! :thumbup:
amuletts
Posts: 1
Joined: November 27th, 2023, 3:28 pm

Re: Windows Notification Toaster

Post by amuletts »

Thank you for this lovely skin.

I would like to do something very specific. I want to have it so that when I tick off an item on my todo list it sends a notification that says "Well done" or similar. how could I get the tick box to act as a trigger for the notification?

I am using Rainmeter To-Do https://github.com/alperenozlu/rainmeter-todo

I'm new to rainmeter so help would be very much appreciated.