Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Middle click to move to secondary editor
#20
ok, got it to work now.
used 'ret' rather than 'mac' to start the macro along with the macros being 'eat' and 'when released' checked.


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 "Move Mac to 2ndy Editor"
,,;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
,,ret "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)