10
10
Startup parameters:
11
11
-notify start with "Notify on focus" enabled by default
12
12
-notifyall start with "Notify always" enabled by default
13
-
13
+
14
14
-beep start with "Beep on focus" enabled by default
15
15
(temporarily disabled due to issue with flashing windows)
16
-
16
+
17
17
-beepall also beep when the UAC window pops up already focused by the OS
18
18
-showtip display current settings in a tray tooltip at script startup
19
19
-noflash do not briefly change tray icon when the UAC window gets focused
30
30
31
31
32
32
; Vars
33
- version := " v0.7.4 "
34
- app_name := " UAC-Focus by lightproof"
33
+ global version := " v0.7.5 "
34
+ global app_name := " UAC-Focus by lightproof"
35
35
global tray_icon := A_ScriptDir " /assets/icon.ico"
36
36
global tray_icon_flashed := " HICON:*" . icon_green()
37
37
global repo := " https://github.com/lightproof/UAC-Focus"
@@ -225,12 +225,13 @@ OnMessage( MsgNum, "ShellMessage" )
225
225
}
226
226
}
227
227
228
+ Return
228
229
229
230
; ================================================================================================
230
- ; ^r::Reload
231
+ ; ^r::Reload
231
232
232
233
233
- ; Functions
234
+ ; Functions
234
235
set_tray_icon(tray_icon)
235
236
{
236
237
if FileExist (tray_icon)
@@ -252,7 +253,7 @@ OnMessage( MsgNum, "ShellMessage" )
252
253
TrayTip , UAC- Focus , Window focused, 3 , 1
253
254
254
255
if tray_flash
255
- SetTimer , flash_tray_icon, - 10
256
+ SetTimer , flash_tray_icon, - 50
256
257
}
257
258
258
259
@@ -275,7 +276,7 @@ OnMessage( MsgNum, "ShellMessage" )
275
276
276
277
rename_help_button(about_window)
277
278
{
278
- loop ,
279
+ loop ,
279
280
{
280
281
If WinExist (about_window)
281
282
{
@@ -331,16 +332,16 @@ OnMessage( MsgNum, "ShellMessage" )
331
332
Menu , Tray , Icon , %tray_icon_flashed% ; Use embedded icon data
332
333
sleep 2000
333
334
set_tray_icon(tray_icon)
334
-
335
+
335
336
/*
336
337
Additional icons to consider:
337
-
338
+
338
339
White balloon tip with "i"
339
340
Menu, Tray, Icon, %A_Windir%\system32\shell32.dll, 222
340
-
341
+
341
342
Green shield with checkmark
342
343
Menu, Tray, Icon, %A_Windir%\system32\imageres.dll, 102
343
-
344
+
344
345
Blue circled arrows
345
346
Menu, Tray, Icon, %A_Windir%\System32\shell32.dll, 239
346
347
@@ -401,7 +402,7 @@ OnMessage( MsgNum, "ShellMessage" )
401
402
{
402
403
loop_index := A_Index - 1 ; Because notify_lvl starts with 0
403
404
notify_lvl_name := lvl_name_%loop_index%
404
-
405
+
405
406
if A_ThisMenuItem = %notify_lvl_name%
406
407
{
407
408
notify_lvl = %loop_index%
0 commit comments