Hi,
I want to create a right-click trigger for the QM editor
When I select some texts, right-click to open the menu Right_SelText
Otherwise, if no text is selected, right-click to open the menu Right_noSelText
The following filter functions do not work
Thanks in advance for any advice and help
david
Function FF_QM_Editor
Trigger #R
Menu Right_SelText
Menu Right_noSelText
I want to create a right-click trigger for the QM editor
When I select some texts, right-click to open the menu Right_SelText
Otherwise, if no text is selected, right-click to open the menu Right_noSelText
The following filter functions do not work
Thanks in advance for any advice and help
david
Function FF_QM_Editor
Trigger #R
;/
function# iid FILTER&f
if(!f.hwnd2) ret -2
if(!wintest(f.hwnd "Quick Macros" "QM_Editor")) ret -2
if(GetWinId(f.hwnd2)=2210)
,_s.getsel
,if _s.len
,,ret "Right_SelText"
,else
,,ret "Right_noSelText"
,
;,ret iid
ret -2
Menu Right_SelText
Menu Right_noSelText