From baa8f0f537a9696accd76057fff1cb5263674c71 Mon Sep 17 00:00:00 2001 From: "Zed A. Shaw" Date: Fri, 1 May 2026 02:48:50 -0400 Subject: [PATCH] Add a quick powershell script that focuses the slides window. --- scripts/focus_control.ps1 | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 scripts/focus_control.ps1 diff --git a/scripts/focus_control.ps1 b/scripts/focus_control.ps1 new file mode 100644 index 0000000..8b74322 --- /dev/null +++ b/scripts/focus_control.ps1 @@ -0,0 +1,16 @@ +Add-Type @" + using System; + using System.Runtime.InteropServices; + public class User32 { + [DllImport("user32.dll")] + [return: MarshalAs(UnmanagedType.Bool)] + public static extern bool SetForegroundWindow(IntPtr hWnd); + } +"@ + +$process = Get-Process | Where-Object { $_.MainWindowTitle -like "*Bezos Loves Slides*" } +Write-Host $process.MainWindowTitle + +if ($process) { + [User32]::SetForegroundWindow($process.MainWindowHandle) +}