Skip to content

Instantly share code, notes, and snippets.

@pointydev
Created October 14, 2019 00:40
Show Gist options
  • Save pointydev/3ba28c959969ba8f245a6afe114c794c to your computer and use it in GitHub Desktop.
Save pointydev/3ba28c959969ba8f245a6afe114c794c to your computer and use it in GitHub Desktop.
AHK script to send a notification when UAC opens (mainly for when it opens minimised) - https://pointy.needs-to-s.top/7m5TKn6.exe
#Persistent
#SingleInstance, Force
Menu, Tray, Tip, UAC Elevation Prompt
Menu, Tray, NoStandard
Menu, Tray, Add, UAC Elevation Prompt, Exit
Menu, Tray, Check, UAC Elevation Prompt
Menu, Tray, Default, UAC Elevation Prompt
Menu, Tray, Disable, UAC Elevation Prompt
Menu, Tray, Add
Menu, Tray, Add, Exit, Exit
Menu, Tray, Icon, imageres.dll, -78, 1
Loop {
Process, Wait, consent.exe
TrayTip,, UAC is prompting for elevation.
Process, WaitClose, consent.exe
Menu, Tray, NoIcon
Menu, Tray, Icon
}
Exit:
ExitApp
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment