mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-24 04:04:31 +00:00
Updated toast for windows
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -53,6 +53,10 @@ function Toaster()
|
|||||||
{
|
{
|
||||||
var cid;
|
var cid;
|
||||||
retVal.options = { env: { _title: title, _caption: caption } };
|
retVal.options = { env: { _title: title, _caption: caption } };
|
||||||
|
for (var c1e in process.env)
|
||||||
|
{
|
||||||
|
retVal.options.env[c1e] = process.env[c1e];
|
||||||
|
}
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
retVal.options.uid = tsid == null ? require('user-sessions').consoleUid() : tsid;
|
retVal.options.uid = tsid == null ? require('user-sessions').consoleUid() : tsid;
|
||||||
@@ -88,7 +92,7 @@ function Toaster()
|
|||||||
retVal.child.stdin.write('$objBalloon.Icon = [System.Drawing.SystemIcons]::Information\r\n');
|
retVal.child.stdin.write('$objBalloon.Icon = [System.Drawing.SystemIcons]::Information\r\n');
|
||||||
retVal.child.stdin.write('$objBalloon.Visible = $True\r\n');
|
retVal.child.stdin.write('$objBalloon.Visible = $True\r\n');
|
||||||
retVal.child.stdin.write('Register-ObjectEvent -InputObject $objBalloon -EventName BalloonTipClosed -Action { $objBalloon.dispose();Write-Host "<`DISMISSED`>" }')
|
retVal.child.stdin.write('Register-ObjectEvent -InputObject $objBalloon -EventName BalloonTipClosed -Action { $objBalloon.dispose();Write-Host "<`DISMISSED`>" }')
|
||||||
retVal.child.stdin.write('$objBalloon.ShowBalloonTip(10000,"' + title + '", "' + caption + '", 0)\r\n');
|
retVal.child.stdin.write('$objBalloon.ShowBalloonTip(10000, $env:_title, $env:_caption, 0)\r\n');
|
||||||
retVal.child.timeout = setTimeout(function (c)
|
retVal.child.timeout = setTimeout(function (c)
|
||||||
{
|
{
|
||||||
c.timeout = null;
|
c.timeout = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user