Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Right-click trigger for QM editor
#1
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     Help - how to add the trigger to the macro
Code:
Copy      Help
;/
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
 
Code:
Copy      Help
SelText :mes "hello" * findacc.ico

Menu Right_noSelText
 
Code:
Copy      Help
noSelText :mes "hello" * findacc.ico


Messages In This Thread
Right-click trigger for QM editor - by Davider - 01-03-2023, 09:49 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)