Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Variable Triggers
#1
I thought I saw something on here about a change in a variable's value triggering a macro. I sure can't find it though. So, is there a way to have a macro trigger when a certain variable changes? that way I don't have to have a function up and spinning the whole time.

thanks.
An old blog on QM coding and automation.

The Macro Hook
#2
If don't want many threads, can set timer in QM thread. For example in a toolbar hook function.
#3
thanks. I came across another example i did this in and used "wait V". that works great for me (even though I've still got that thread out there) cuz it's not checking every so often but is waiting for the trigger event. Anyway I'm putting it here so that the next time I want to do this and can't remember I'll see my note and use "wait V". :oops:


Function Background_Noise
Code:
Copy      Help
int+ projtimer
rep
,wait 0 V projtimer
,Play 4 "C:\qm\Desktop\New_Rain30s.mp3" 1
,wait 0 -V projtimer
,Play 4 "C:\qm\Desktop\New_Rain30s.mp3" -1
An old blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 1 Guest(s)