Close to tray?

74 views
Skip to first unread message

poisonborz

unread,
Jul 6, 2016, 4:19:19 AM7/6/16
to ConEmu ML
While ConEmu supports to be minimized to the tray icon in multiple ways, most of the windows programs that support this allow the app to be "closed to the tray" - so that pressing X on the window will also minimize to the tray - this way the app can then be exited via the menu in tray icon right click. I almost never press minimize on tray icon apps, always pressing X, remembering which to minimize/close is a bit tiresome.
Could this be implemented, or is this already possible?
Thanks

ConEmu Maximus

unread,
Jul 6, 2016, 4:29:54 AM7/6/16
to cone...@googlegroups.com

Just Right-click on the cross.

Wednesday, 06 July 2016, 11:19am +03:00 from poisonborz poiso...@gmail.com:

While ConEmu supports to be minimized to the tray icon in multiple ways, most of the windows programs that support this allow the app to be "closed to the tray" - so that pressing X on the window will also minimize to the tray - this way the app can then be exited via the menu in tray icon right click. I almost never press minimize on tray icon apps, always pressing X, remembering which to minimize/close is a bit tiresome.
Could this be implemented, or is this already possible?
Thanks

--
You received this message because you are subscribed to the Google Groups "ConEmu ML" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conemu_ml+...@googlegroups.com.
To post to this group, send email to cone...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/conemu_ml/7e84f4ca-7546-46ca-8129-e8e2a9dfcb9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

poisonborz

unread,
Jul 8, 2016, 9:21:06 AM7/8/16
to ConEmu ML, conemu....@gmail.com
Thanks, thats kinda a solution, but it would be still neat to have a "close to tray" setting.


On Wednesday, 6 July 2016 10:29:54 UTC+2, Maximus ConEmu wrote:

Just Right-click on the cross.

Wednesday, 06 July 2016, 11:19am +03:00 from poisonborz poiso...@gmail.com:

While ConEmu supports to be minimized to the tray icon in multiple ways, most of the windows programs that support this allow the app to be "closed to the tray" - so that pressing X on the window will also minimize to the tray - this way the app can then be exited via the menu in tray icon right click. I almost never press minimize on tray icon apps, always pressing X, remembering which to minimize/close is a bit tiresome.
Could this be implemented, or is this already possible?
Thanks

--
You received this message because you are subscribed to the Google Groups "ConEmu ML" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conemu_ml+unsubscribe@googlegroups.com.

AHKer

unread,
Jul 4, 2019, 9:35:22 PM7/4/19
to ConEmu ML
Here's a workaround in AutoHotKey:

#IfWinActive, ahk_exe conemu.exe
LButton::
WinGet, hWnd, ID, A
WinGet,process,ProcessName, ahk_id %hWnd%
if process !=conemu.exe
Return


CoordMode, Mouse, Screen
MouseGetPos, vPosX, vPosY, hWnd2


if (hWnd = hWnd2)
{
 
SendMessage, 0x84, 0, vPosX|(vPosY<<16), , ahk_id %hWnd% ;WM_NCHITTEST
 vNCHITTEST
:= ErrorLevel ;(8 min, 9 max, 20 close)
 
 
if (vNCHITTEST = 20)
 
{
 
MouseClick,R
 
Return
 
}
}


SendInput {LButton Down}
KeyWait, LButton
SendInput {LButton Up}
Return
#IfWinActive

To use, download AutoHotKey from the link above and install. Then copy the code above, paste into notepad, and save it as an .ahk file (ie: ConEmu_CloseToTray.ahk). Then double click the file to run it. You can also place it into your startup folder in the start menu to have it run automatically when you start windows. 

Reply all
Reply to author
Forward
0 new messages