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


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)