Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One very small code contribution: Open Tray Menu on left mouse click #101

Closed
schittli opened this issue Jun 8, 2018 · 1 comment
Closed
Milestone

Comments

@schittli
Copy link

schittli commented Jun 8, 2018

Good Afternoon
This is a small code change I've made because the Users have to guess the right mouse button to open the Tray Menu (the usual small issue in Windows Applications).
Therefore, I've added two small code fragments so that the Tray Menu can be opened by a left mouse click:

Register the OnMessage Event at the beginning of Lintalist\lintalist.ahk:

; /Default settings

; Tray Menu left click handler
OnMessage(0x404, "AHK_NOTIFYICON") 

; Tray Menu
…

Handle the OnMessage Event at the very end of Lintalist\lintalist.ahk:

…
; -------------------------------------------------------------------------------

; Show the Tray Menu if the Tray Icon is clicked by the left mouse button
AHK_NOTIFYICON(wParam, lParam) { 
	; WM_LBUTTONUP
	if (lParam = 0x202) { 
		Menu, Tray, Show 
		return 0
	}
} 

#Include *i %A_ScriptDir%\autocorrect.ahk

Maybe you find it useful.
Kind regards,
Thomas

@lintalist
Copy link
Owner

Thanks, nice addition, I'll add it.

@lintalist lintalist added this to the v1.9.7 milestone Aug 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants