Se Connecter:     


Forum: General Discussion

Sujet: While released button is 0% volume?

Ce topic est ancien et peut contenir des informations obselètes ou incorrectes.

Hello, I'm looking for some help with coding a button for VDJ7.

When the volume is 100%, I want a button that when I tap it it stays on 100%, but then when the tap is released the volume is 0%. What would the code be?

 

Posté Mon 29 Jun 15 @ 7:13 am
master_volume 0% while_pressed
 

Thanks but that's not what I'm looking for.
 

volume 0% & volume 100% while_pressed


Maybe, my V7 script is a distant memory,
windows filter keys may mess it up, I've got a vague idea how to do it with down ? & several variables. If needs be.
 

DJkanman wrote :
When the volume is 100%, I want a button that when I tap it it stays on 100%, but then when the tap is released the volume is 0%


This reads to me as you want to stay at 0%? If so...

If the volume is 100%, then when you lift that key the volume will go to 0%:

up ? volume 100% ? volume 0%


If you want it so that it works if the volume isn't 100%, but 99% or whatever:

up ? volume 0%


You can of course make it deck specific by prefixing with deck:

up ? deck 1 volume 100% ? deck 1 volume 0%


Or make it work on the master volume:

up ? master_volume 100% ? master_volume 0%


If that's not what you are looking for then you'll need to be more specific.
 

SBDJ wrote :
If that's not what you are looking for then you'll need to be more specific.


how many times iv seen this... lost count
 

Thanks Locodog - works perfectly. I didn't need to test those out SBDJ, but cheers for the help.
 



(Les anciens sujets et forums sont automatiquement fermés)