12-02-2008, 09:55 PM
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
THANKS.
used 'ret' rather than 'mac' to start the macro along with the macros being 'eat' and 'when released' checked.
Function FF_QM_Open_items
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 iidTHANKS.
