Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Eat right button
#1
i have a general trigger for mouse right click.
firefox ignores 'eat', context menus still show up.

i ask that, because i want to use your Mouse Chords engine.
like:
right + left -> key E
right + middle -> key H

FF_rightclick
Code:
Copy      Help
;/
function# iid FILTER&f
str cla.getwinclass(f.hwnd)    
str childclass.getwinclass(f.hwnd2)    
str win_exe.getwinexe(win());err
int+ _xm = xm
int+ _ym = ym

int+ lhwnd = f.hwnd
if(!f.hwnd2) ret -2
sel _s.getwinexe(f.hwnd) 1
,case "qm"
,,if cla="#32768" && win_exe="explorer"
,,,mac "menu_right"    
,,if(GetWinId(f.hwnd2)=1287)
,,,_s.getsel()
,,,out _s
,case "Dreamweaver"
,,if(GetWinId(f.hwnd2)=59419) mac "dw_close_internal"
,;case "scite"
,,;if(GetWinId(f.hwnd2)=354) mac "scite_tab"
,case "flash"
,,if(GetWinId(f.hwnd2)=100)
,,,mac "flmx_lib_right"
,case "explorer"
,,if(wintest(f.hwnd "" "Shell_TrayWnd"))
,,,if(childtest(f.hwnd2 "Quick Launch" "ToolbarWindow32" f.hwnd))
,,,,mac "quicklaunch"
,,,,ret -1
,case "firefox"
,,out "firefox"
;
,case else ret -2 ;;default action in other programs


,,
pi
#2
Don't know, my FF does not ignore "eat".

How if QM starts after FF?

Try to disable FF Add-ons.
#3
tried different things,
reboot,
run "$program files$\Mozilla Firefox\firefox.exe" "-safe-mode"

same result, qm output is quicker than ff context menu,
ff right click still not eaten.
pi
#4
when i use a single macro with filter '#Rh1 /FIREFOX' it works.
pi
#5
The filter function returns 0 in firefox. See filter function return values in help.
#6
i don't understand your answer.
from help:
Quote:0 discard the trigger. If there are more macros that have the same trigger, they also will not run.

FF_rightclick is the only filter for right click in my qml.
pi
#7
Return -1 to eat.
#8
ah, now i understand.
thanks again.
pi


Forum Jump:


Users browsing this thread: 1 Guest(s)