Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Middle click to move to secondary editor
#7
I think it's conflicting with some of my other macs and filter functions that use QM and middle click.
do i take these two and combine them into one with an integer'd case statement?

Function FF_QM_menu_File2
Code:
Copy      Help
if(GetWinId(f.hwnd2)!=2202) ret

int+ g_qm_menu_iid
TVHITTESTINFO ht
GetCursorPos &ht.pt; ScreenToClient f.hwnd2 &ht.pt
SendMessage f.hwnd2 TVM_HITTEST 0 &ht
if(ht.hItem)
,TVITEM ti.hItem=ht.hItem
,SendMessage f.hwnd2 TVM_GETITEM 0 &ti
,g_qm_menu_iid=ti.lParam
else g_qm_menu_iid=0
;out g_qm_menu_iid

ret iid


Function FF_QM_Open_items
Code:
Copy      Help
;/
function# iid FILTER&f
if(!f.hwnd2) ret
if(f.hwnd=_hwndqm and GetWinId(f.hwnd2)=2212) ret iid
;if(wintest(f.hwnd "Open items" "SysTreeView32" "qm")) ret iid
An old blog on QM coding and automation.

The Macro Hook


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)