WindowInfo Hexadecimal output for handle

This commit is contained in:
glax 2024-04-16 21:48:22 +02:00
parent 47d55a9132
commit 6d09501a7f

View File

@ -44,6 +44,6 @@ public struct WindowInfo
const int cutoffStr = 17;
string processNameStr = ProcessInfo.ProcessName.Substring(0, Math.Min(cutoffStr, ProcessInfo.ProcessName.Length));
string windowTitleStr = WindowTitle.Substring(0, Math.Min(cutoffStr, WindowTitle.Length));
return $"{WindowHandle,8} | {ProcessInfo.Id,8} | {processNameStr,cutoffStr} | {windowTitleStr,-cutoffStr} | {WindowCommands,-13} | {WindowRectangle}";
return $"0x{WindowHandle,6:X} | {ProcessInfo.Id,8} | {processNameStr,cutoffStr} | {windowTitleStr,-cutoffStr} | {WindowCommands,-13} | {WindowRectangle}";
}
}