add description feature

This commit is contained in:
MyDrift 2024-07-12 16:40:45 +02:00
parent 73973d7101
commit 790e0b22a5
2 changed files with 6120 additions and 6015 deletions

View File

@ -13,9 +13,9 @@
.EXAMPLE
Set-WinUtilTaskbaritem -value 0.5 -state "Normal"
Set-WinUtilTaskbaritem -state "Error"
Set-WinUtilTaskbaritem -state "None"
Set-WinUtilTaskbaritem -state "Indeterminate"
Set-WinUtilTaskbaritem -overlay "C:\path\to\icon.ico"
Set-WinUtilTaskbaritem -description "This is a description"
Set-WinUtilTaskbaritem -overlay "C:\path\to\icon.png"
#>
@ -24,8 +24,8 @@ function Set-WinUtilTaskbaritem {
param (
[double]$value,
$state,
$overlay
#[string]$description
$overlay,
$description
)
if ($value) {
@ -60,4 +60,8 @@ function Set-WinUtilTaskbaritem {
$sync["Form"].taskbarItemInfo.Overlay = $bitmapImage
}
if ($description) {
$sync["Form"].taskbarItemInfo.Description = $description
}
}

12123
winutil.ps1

File diff suppressed because it is too large Load Diff