You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make a small PowerShell program to display a toast notification that will show me in real-time how a copy job is doing. For the moment I haven't coded origin/copy size-compare program, so it's supposed to go up of 1% every second.
$image=New-BTImage-Source "D:\Pictures\Profile image.png"-Crop Circle
$binding=@{
text1="Downloading your files..."text2="Your files are being downloaded so they can be available offline."image=$imagevalue=0
}
$progress=New-BTProgressBar-Status "Downloading..."-Value $binding['value'] -Title "Download"-Verbose
New-BurntToastNotification-Text $binding['text1'],$binding['text2'] -AppLogo $binding['image'] -ProgressBar $progress-UniqueIdentifier "toast"-Verbose
foreach ($nin1..100){
$binding['value'] =$binding['value'] +0.01$binding['text1'] ="hello"Write-Output$bindingUpdate-BTNotification-UniqueIdentifier "toast"-DataBinding $binding-Verbose
Start-Sleep1
}
But it doesn't seem to update ! The -Verbose doesn't show any error, and Write-Output $binding is clearly evidence $bindings is being updated every second...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying to make a small PowerShell program to display a toast notification that will show me in real-time how a copy job is doing. For the moment I haven't coded origin/copy size-compare program, so it's supposed to go up of 1% every second.
But it doesn't seem to update ! The
-Verbose
doesn't show any error, andWrite-Output $binding
is clearly evidence$bindings
is being updated every second...I don't know what I'm doing wrong...
Thanks for any answer,
Silloky
Beta Was this translation helpful? Give feedback.
All reactions