Posts: 1,769
Threads: 410
Joined: Feb 2003
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.
Posts: 12,147
Threads: 143
Joined: Dec 2002
If don't want many threads, can set timer in QM thread. For example in a toolbar hook function.
Posts: 1,769
Threads: 410
Joined: Feb 2003
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
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