Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pause trigger from code
#1
Hi Gintaras, hi all

i have a function trigerred by process termination, ie when firefox process stops, the function is launched. So far so good.

But, i'd like from time to time to be able to close firefox and skip the trigger (by code) to do something else within another macro, and reactivate the
trigger after.

Firefox closes ---> function (OnFirefoxClose) triggered by firefox close trigger ---> action

instead i'd like

Firefox close ---->stop OnFirefoxClose trigger; do action --> OnFirefoxClose on again

Is it possible???
#2
Use a global variable.
Macro1:
int+ g_pause55
g_pause55=1
...
g_pause55=0

OnFirefoxClose:
int+ g_pause55
if(g_pause55) ret
#3
Thanks
#4
I stumble upon the dis[+-] function searching for something else.

Would it do the job too?
#5
Yes, but it is not so lightweight. QM item 'disabled' state is saved to file. QM will autosave file often.
#6
Ok, fair enough.


Forum Jump:


Users browsing this thread: 1 Guest(s)