Skip to content

Commit

Permalink
disabled -beepall option for now
Browse files Browse the repository at this point in the history
  • Loading branch information
lightproof committed Jun 17, 2023
1 parent cfda206 commit ff6e536
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
21 changes: 12 additions & 9 deletions UAC-Focus.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
Startup parameters:
-notify start with "Notify on focus" enabled by default
-notifyall start with "Notify always" enabled by default
-beep start with "Beep on focus" enabled by default
(temporarily disabled due to issue with flashing windows)
-beepall also beep when the UAC window pops up already focused by the OS
-showtip display current settings in a tray tooltip at script startup
-noflash do not briefly change tray icon when the UAC window gets focused
Expand All @@ -27,7 +30,7 @@


; Vars
version := "v0.7.3"
version := "v0.7.4"
app_name := "UAC-Focus by lightproof"
global tray_icon := A_ScriptDir "/assets/icon.ico"
global tray_icon_flashed := "HICON:*" . icon_green()
Expand Down Expand Up @@ -91,10 +94,6 @@
This will sound two short beeps each time the UAC window gets focused.
`n`n

-beepall
`n
Same as above, but also beep once when the UAC window pops up already focused by the OS.
`n`n

-showtip
`n
Expand All @@ -106,6 +105,10 @@
Do not briefly change tray icon when the UAC window gets focused.
)"
; -beepall
; `n
; Same as above, but also beep once when the UAC window pops up already focused by the OS.
; `n`n

; Set startup parameters
Loop, %0%
Expand All @@ -125,8 +128,8 @@
if arg = -beep
global beep := "On"

if arg = -beepall
global beep := "Always"
; if arg = -beepall
; global beep := "Always"

if arg = -noflash
global tray_flash := 0
Expand Down Expand Up @@ -255,8 +258,8 @@ OnMessage( MsgNum, "ShellMessage" )

win_already_active(hwnd)
{
if (beep = "Always")
SoundBeep, , 100
; if (beep = "Always")
; SoundBeep, , 100

if notify_lvl = 2
TrayTip, UAC-Focus, Already in focus, 3, 1
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ Start with **Notify always** enabled. Same as above, but also display notificati

Start with **Beep on focus** enabled. This will sound two short beeps each time the UAC window gets focused.

`-beepall`
[comment]: # (`-beepall`)

Same as above, but also beep once when the UAC window pops up already focused by the OS.
[comment]: # (Same as above, but also beep once when the UAC window pops up already focused by the OS.)

`-showtip`

Expand Down

0 comments on commit ff6e536

Please sign in to comment.