Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FMM areas
#4
This filter function launches macro m1 when in top of the trigger area, and macro m2 when in bottom.

Code:
Copy      Help
------------------------------------
|........|................|........|
|........|................|........|
|........|................|...m1...|
|........|................|........|
|........|................|........|
|........|................|--------|
|........|................|........|
|........|................|........|
|........|................|...m2...|
|........|................|........|
|........|................|........|
------------------------------------

Function FF_mm_vert_2areas
Trigger #^3 //FF_mm_vert_2areas     Help - how to add the trigger to the macro
Code:
Copy      Help
;/
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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)