Update samy.ps1
This commit is contained in:
11
samy.ps1
11
samy.ps1
@@ -792,6 +792,17 @@ $Global:SamyTasks | ForEach-Object {
|
|||||||
Write-LogHybrid "BAD TOOLTIP TYPE: Id=$($_.Id) Type=$($_.Tooltip.GetType().FullName) ValueCount=$(@($_.Tooltip).Count)" Warning UI -LogToEvent
|
Write-LogHybrid "BAD TOOLTIP TYPE: Id=$($_.Id) Type=$($_.Tooltip.GetType().FullName) ValueCount=$(@($_.Tooltip).Count)" Warning UI -LogToEvent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Write-LogHybrid "Dumping tooltip lengths (to spot mega-tooltips)..." Info UI -LogToEvent
|
||||||
|
|
||||||
|
$Global:SamyTasks | ForEach-Object {
|
||||||
|
$tip = if ($_.PSObject.Properties.Name -contains 'Tooltip') { [string]$_.Tooltip } else { "" }
|
||||||
|
$len = $tip.Length
|
||||||
|
|
||||||
|
if ($len -gt 80) {
|
||||||
|
$preview = $tip.Substring(0, [Math]::Min(160, $len))
|
||||||
|
Write-LogHybrid "LONG TOOLTIP: Id=$($_.Id) Len=$len Preview='$preview'" Warning UI -LogToEvent
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion building the Menu
|
#endregion building the Menu
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user