Disabling tray icon double-click popups doesn't work

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
dbgba
Posts: 20
Joined: 02 Apr 2021, 22:11

Disabling tray icon double-click popups doesn't work

14 Jan 2024, 03:38

I'm trying to disable or change the tray icon double click popup doesn't work, am I doing something wrong?

Code: Select all

#Persistent
hMenu := MenuGetHandle("Tray")
Loop 10
	(A_Index!=8 && DllCall("RemoveMenu", "Ptr", hMenu, "Int", 65299+A_Index, "Int", 0))

DllCall("SetMenuDefaultItem", "Ptr", hMenu, "Uint", 65307, "uint", 0, "int")
; DllCall("SetMenuDefaultItem", "Ptr", hMenu, "Uint", -1, "uint", 0, "int")
User avatar
Xtra
Posts: 2750
Joined: 02 Oct 2015, 12:15

Re: Disabling tray icon double-click popups doesn't work

15 Jan 2024, 00:23

A different approach:

Code: Select all

#NoEnv
#Persistent

Menu, Tray, NoStandard
Menu, Tray, Add, Exit
Menu, Tray, Default, Exit
return

Exit:
    ExitApp

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], silelunu and 89 guests