Skip to content

Instantly share code, notes, and snippets.

@ajkessel
Last active January 1, 2026 09:22
Show Gist options
  • Select an option

  • Save ajkessel/b382d5bb63dc5b9b17dc7f2ee8f9789f to your computer and use it in GitHub Desktop.

Select an option

Save ajkessel/b382d5bb63dc5b9b17dc7f2ee8f9789f to your computer and use it in GitHub Desktop.
; This AutoHotkey script looks for the popup that occurs in Microsoft Outlook when the user toggles the conversation view and automatically clicks "all mailboxes"
; It is intended to be called from https://gist.github.com/ajkessel/0124db8cf957a9591e604df18236dba8
#Requires AutoHotkey v2.0
#SingleInstance force
SetControlDelay -1
count := 0
IsVisible := False
sleep 10
while not IsVisible AND count < 100 {
try {
IsVisible := ControlGetVisible("All mailboxes","Microsoft Outlook")
} catch {
sleep 10
}
count := count + 1
}
try {
ControlClick "All mailboxes","Microsoft Outlook"
} catch {
sleep 10
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment