Update-BTNotification with -ProgressBar option #103
-
Hi, Is there a way to update the ProgressBar without refreshing the whole toast ? Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
Hey @PhilZ-cwm6, I think I've got some documentation on how to do this with What's the error and how're you trying to use it current? |
Beta Was this translation helpful? Give feedback.
-
Here's the sample test.ps1 I am trying
That code works perfectly, except all the toast is refreshed/recreated (as expected) when calling
This is a sample test from a long backup script. Currently, I refresh the progress during backup job using the New-BurntToastNotification in a Well, it is just perfect as it is now for me, however, when I saw the |
Beta Was this translation helpful? Give feedback.
-
I got it with Get-BTHistory I will look at it in 1-2 days I think and give a feedback |
Beta Was this translation helpful? Give feedback.
-
Your $Progress tip to use the DataBinding worked perfectly, many thanks ! Here's a sample test of what I am trying to achieve and that doesn't work.
$toast_exists is always false because $toast."Content"."InnerText" only has this: The entries are not populated and I tried every way to query their values, no success When not using DataBinding, it works perfectly:
now, it is true Also, in both cases, I cannot query the Is there a way at least to fix the first issue: query the text lines contents when using DataBinding ? Many thanks and best regards |
Beta Was this translation helpful? Give feedback.
-
I get it now, was driving me crazy since no documentation is present for the Get-BTHistory and I found no examples :-) Wired object in fact, seems like a simple table only object Best regards |
Beta Was this translation helpful? Give feedback.
Your $Progress tip to use the DataBinding worked perfectly, many thanks !
However, I could not use the get-bthistory as I wanted:
Here's a sample test of what I am trying to achieve and that doesn't work.
When I try to query the contents of the toast, the Contents.InnerText values are not reported properly when using the DataBinding: