Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Middle click to move to secondary editor
#16
yes, i'm seeing that when i put it by itself in a fresh qml. i can also get it to do that if i call the pop-up menu from the filter function and ret the iid but the pop-up menu goes away in a blink rather than staying there. but, if i don't call the pop-up in the FF and just ret the iid it performs the other mid-click of moving it to the 2ndy editor. here's my code for the FF.

have i got something in the wrong place?

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
;out
if(f.hwnd=_hwndqm)
,_i=GetWinId(f.hwnd2)
,if _i=2212
,,out _i
,,ret iid
,,end
,if _i=2202
,,_s.time("%c")
,,_s.from("2202 started " _s)
,,out _s
,,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
,,;mac "Menu QM menu File-ken"
,,ret iid

thanks.
An old blog on QM coding and automation.

The Macro Hook


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)