From 6d09501a7f67d7106088c1734f2670d2bd566c89 Mon Sep 17 00:00:00 2001 From: glax Date: Tue, 16 Apr 2024 21:48:22 +0200 Subject: [PATCH] WindowInfo Hexadecimal output for handle --- OBSBlur/Window/WindowInfo.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OBSBlur/Window/WindowInfo.cs b/OBSBlur/Window/WindowInfo.cs index a993f51..acf3a76 100644 --- a/OBSBlur/Window/WindowInfo.cs +++ b/OBSBlur/Window/WindowInfo.cs @@ -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}"; } } \ No newline at end of file