Ok the #CRFL# now seems to work from Lua... Yay.
One thing to remember in Lua is that any string with "\" in it will give you some trouble, as "\" is the "escape" character in Lua. So to get things to work, I needed to use:
Code: Select all
itemTitle = string.gsub(itemTitle, '\\', '\\\\')
SKIN:Bang('"#@#InformMe.exe" traytip <Title="New GMail"\\> <Text="From: '..itemAuthor..'#CRLF#'..itemTitle..'"\\> <TrayIcon=#@#Images\\Gmail.ico\\>')
The string.gsub is just to protect against any "\" chars that might be in the email title.
The TrayIcon approach works as well, although Windows uses a small, maybe 20x20 representation of the icon when you use a custom one.
1.png
What I gather from playing with this is that at least with Windows 10 Insider Preview, which has MASSIVE changes to how the entire "notification" paradigm works:
Windows
insists on "identifying" which application sends a notification. Here is what it will do:
1) If you specify no icon at all, it will use the icon from inform.exe, putting that in both the flyout panel and in the notification area.
2) If you specify a custom icon, it will use that in both the flyout panel and in the notification area.
3) If you specify a built-in Windows icon by number, like "1" for "Info", it will use that icon in the flyout panel, but will use the icon from inform.exe in the notification area, and put the name of the program at the bottom of the flyout panel.
As I said, I think the goal is that there is always some indication to the user of what program sent a "notification". Anonymous, drive-by notifications are not going to be allowed.
With Win10 Insider Preview, you also get the notification added to the "Action Center" for as long as it is "active". That will show the name of the executable program, then the Title, the first line of the Text, and a short representation of the time that it was added to the Action Center. the rest of the Text of the notification is also there, under a "more" arrow.
2.png
The entry in the Action Center disappears when the flyout is dismissed or times out.
You do not have the required permissions to view the files attached to this post.