Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Chording with macros having same trigger funcion - trouble
#1
Quote: Runs when you press the first button in a chord.
To change first button in chords, change trigger of this function.
If there are more macros that have same trigger as this function,
this function must be above them in the list.

#compile MC_Init
if(!g_mc.Initialized) MC_Init

int t=GetTickCount
if(g_mc.onDoubleClick and t>=g_mc.tStart and t<=g_mc.tStart+g_mc.tDoubleClick) ;;the first button was double clicked
mac g_mc.onDoubleClick; err ;;runs macro that is set in MC_Init
or, you can convert double click to single click:
mid ;;clicks the middle button. You can enable this line and disable the mac line.
else g_mc.tStart=t
ret -1

What does "this function must be above them in the list" mean
- a separate function must exist OR
- the function text should actually be in the macro?

And are there any variables that need to be changed?

Stuart
#2
Quote:If there are more macros that have same trigger as this function,
this function must be above them in the list.

I wanted to say the following.

When there are duplicate triggers, QM picks one that is first in the list of macros, and disables others. It is true when QM starts. Creating and moving macros may change this order.


Forum Jump:


Users browsing this thread: 1 Guest(s)