mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-01-16 01:40:35 -06:00
add description feature
This commit is contained in:
parent
73973d7101
commit
790e0b22a5
@ -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
12123
winutil.ps1
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user