04-13-2009, 10:02 PM
This filter function launches macro m1 when in top of the trigger area, and macro m2 when in bottom.
Function FF_mm_vert_2areas
Trigger #^3 //FF_mm_vert_2areas
Can be used with #^1, #^2 and #^3 triggers.
------------------------------------
|........|................|........|
|........|................|........|
|........|................|...m1...|
|........|................|........|
|........|................|........|
|........|................|--------|
|........|................|........|
|........|................|........|
|........|................|...m2...|
|........|................|........|
|........|................|........|
------------------------------------
Function FF_mm_vert_2areas
Trigger #^3 //FF_mm_vert_2areas
;/
function# iid FILTER&f
if ym<ScreenHeight/2
,out 1
,;mac "m1"
else
,out 2
,;mac "m1"
;ret iid - run the macro.
;ret macro - run other macro. Here 'macro' is its id or name.
;ret 0 - don't run any macros.
;ret -1 - don't run any macros but eat the key. Eg if the filter function started a macro using mac.
;ret -2 - don't run this macro. Other macros with the same trigger can run.
Can be used with #^1, #^2 and #^3 triggers.