I am currently dusting off some old scripts (the MU*-ing bug never leaves a person) and came across a slight annoyance that I am pretty sure is rather simple to amend / implement on your end.
For this particular script, it is really annoying that the popup menu pops downwards. From my experiences with the Windows API, I know there are TPM_*ALIGN flags that control the behaviour of the TrackPopupMenu() api call with regards to the specified X and Y coordinate. (For whatever wacky reason, it even supports centering in both horizontal and vertical directions.. o.O)
I'd dig through the source code and offer a patch, but I suspect that I'll get lost in the rabbit hole for the Lua/misc scripting trying to add said parameter, only to end up implementing it in a way you'd rather see done different. :-)
See: https://msdn.microsoft.com/en-us/library/windows/desktop/ms648002(v=vs.85).aspx
P.S.: A belated best wishes for this year!
For this particular script, it is really annoying that the popup menu pops downwards. From my experiences with the Windows API, I know there are TPM_*ALIGN flags that control the behaviour of the TrackPopupMenu() api call with regards to the specified X and Y coordinate. (For whatever wacky reason, it even supports centering in both horizontal and vertical directions.. o.O)
I'd dig through the source code and offer a patch, but I suspect that I'll get lost in the rabbit hole for the Lua/misc scripting trying to add said parameter, only to end up implementing it in a way you'd rather see done different. :-)
See: https://msdn.microsoft.com/en-us/library/windows/desktop/ms648002(v=vs.85).aspx
P.S.: A belated best wishes for this year!