Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FMM areas
#1
i would like my own FMM hotspot areas.
is this possible?

Function ffm_down
Trigger #v2     Help - how to add the trigger to the macro
Code:
Copy      Help
spe -1
int h=win(mouse)
;out _s.getwinexe(h)
act win(mouse)
;0.5
key E
pi
#2
Not sure I correctly understand you. Maybe something is possible with filter functions. Or use your own low level mouse hook.
#3
i use down and up for firefox page scroll and need all areas for vertical middle.

***
so i assign all FMM triggers to my FF in the properties dialog (function).
my FF then can use an own grid (areas)?
pi
#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.
#5
thats pretty cool!

in properties dialog i can choose which monitor.
is there some qm code for it or do i have to use own code?
pi
#6
out f.tmon
#7
out f.tmon returns 31 on both of my screens.
?
pi
#8
Your trigger works in All monitors. Then use Windows API function MonitorFromPoint to get monitor handle, and QM function MonitorIndex to get monitor index as QM uses it.
#9
sorry for the delay Confusedhock: :lol:

Function WinApp
Trigger WM     Help - how to add the trigger to the macro
Code:
Copy      Help
POINT p; xm p
int mon=MonitorFromPoint(p MONITOR_DEFAULTTONULL)
out MonitorIndex(mon)
pi


Forum Jump:


Users browsing this thread: 1 Guest(s)