04-27-2009, 05:27 PM
i have two FF_rightclick triggers, one for caption and the other for client.
the caption function is for moving windows between my monitors.
when the client function is enabled too, the caption function is sometimes interfered.
both are set to eat + When released.
Function FF_rightclick
Trigger #Rh1 //FF_rightclick
Function move1_2
Trigger #Rh2
the caption function is for moving windows between my monitors.
when the client function is enabled too, the caption function is sometimes interfered.
both are set to eat + When released.
Function FF_rightclick
Trigger #Rh1 //FF_rightclick
;/
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"
,,;mac "MC_First";ret -1
,;case "devenv"
,,;;if(childtest(f.hwnd2 "" "VsTextEditPane"))
,,,;;if xm(0 f.hwnd2)<16
,,,,;;mac "devenv_code"
,,,,;;ret -1
,,
,case else ret -2 ;;default action in other programs
,,
Function move1_2
Trigger #Rh2