djtouchdan wrote :
Correct Huey.
Unfortunately at the moment the is no way to return text from a variable VDJ script.
Unfortunately at the moment the is no way to return text from a variable VDJ script.
I stand corrected!! Nice find Scott!! :-)
Inviato Mon 01 Nov 10 @ 1:02 am
All together now..... "we love you Scott....."
Inviato Mon 01 Nov 10 @ 3:13 am
Implemeted this nicely into BlackSheep 4 (coming soon):
![](/image/89320/45937/BSMD4-bar..PNG)
![](/image/97255/45938/BSMD4-bar2.PNG)
I implemeted this using pannels and the "var $...." as the visible attibute - the same as djdad has done in his VMS4 skin. I couldn't get it to work the way i wanted otherwise.
I implemeted this using pannels and the "var $...." as the visible attibute - the same as djdad has done in his VMS4 skin. I couldn't get it to work the way i wanted otherwise.
Inviato Mon 01 Nov 10 @ 2:22 pm
So then did you just use a different pannel for each color?
Inviato Mon 01 Nov 10 @ 2:28 pm
Exactly right....
MY CODE :) wrote :
<pannel id="battery_10" group="battery" visible="var_smaller $battery_percent 10">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1414" y="928"/>
</pannel>
<pannel id="battery_20" group="battery" visible="var_smaller $battery_percent 20">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1388" y="928"/>
</pannel>
<pannel id="battery_30" group="battery" visible="var_smaller $battery_percent 30">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1362" y="928"/>
</pannel>
<pannel id="battery_40" group="battery" visible="var_smaller $battery_percent 40">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1336" y="928"/>
</pannel>
<pannel id="battery_50" group="battery" visible="var_smaller $battery_percent 50">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1310" y="928"/>
</pannel>
<pannel id="battery_60" group="battery" visible="var_smaller $battery_percent 60">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1284" y="928"/>
</pannel>
<pannel id="battery_70" group="battery" visible="var_smaller $battery_percent 70">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1258" y="928"/>
</pannel>
<pannel id="battery_80" group="battery" visible="var_smaller $battery_percent 80">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1232" y="928"/>
</pannel>
<pannel id="battery_90" group="battery" visible="var_smaller $battery_percent 90">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1206" y="928"/>
</pannel>
<pannel id="battery_100" group="battery" visible="var_smaller $battery_percent 100">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1365" y="915"/>
</pannel>
<pannel id="battery_100+" group="battery" visible="var_equal $battery_percent 100">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1365" y="915"/>
</pannel>
<textzone>
<size width="25" height="9"/>
<pos x="1334" y="1"/>
<text font="arial" size="12" color="#808080" align="center" format="`get var $battery_percent`%"/>
</textzone>
<pannel id="battery_10" group="battery" visible="var_smaller $battery_percent 10">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1414" y="928"/>
</pannel>
<pannel id="battery_20" group="battery" visible="var_smaller $battery_percent 20">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1388" y="928"/>
</pannel>
<pannel id="battery_30" group="battery" visible="var_smaller $battery_percent 30">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1362" y="928"/>
</pannel>
<pannel id="battery_40" group="battery" visible="var_smaller $battery_percent 40">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1336" y="928"/>
</pannel>
<pannel id="battery_50" group="battery" visible="var_smaller $battery_percent 50">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1310" y="928"/>
</pannel>
<pannel id="battery_60" group="battery" visible="var_smaller $battery_percent 60">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1284" y="928"/>
</pannel>
<pannel id="battery_70" group="battery" visible="var_smaller $battery_percent 70">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1258" y="928"/>
</pannel>
<pannel id="battery_80" group="battery" visible="var_smaller $battery_percent 80">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1232" y="928"/>
</pannel>
<pannel id="battery_90" group="battery" visible="var_smaller $battery_percent 90">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1206" y="928"/>
</pannel>
<pannel id="battery_100" group="battery" visible="var_smaller $battery_percent 100">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1365" y="915"/>
</pannel>
<pannel id="battery_100+" group="battery" visible="var_equal $battery_percent 100">
<size width="24" height="9"/>
<pos x="1363" y="2"/>
<down x="1365" y="915"/>
</pannel>
<textzone>
<size width="25" height="9"/>
<pos x="1334" y="1"/>
<text font="arial" size="12" color="#808080" align="center" format="`get var $battery_percent`%"/>
</textzone>
Inviato Mon 01 Nov 10 @ 2:39 pm
I see... that's a bit different than what I thought.
Couldn't you perhaps combine the earlier example I used (splitting it up into say, ten buttons) with this technique that uses four pannels - one for each color? Then you could later redefine when it turns red, orange, green, etc. Granted, that probably doesn't really make anything easier in the end.
Thanks for the example.
Couldn't you perhaps combine the earlier example I used (splitting it up into say, ten buttons) with this technique that uses four pannels - one for each color? Then you could later redefine when it turns red, orange, green, etc. Granted, that probably doesn't really make anything easier in the end.
Thanks for the example.
Inviato Mon 01 Nov 10 @ 2:43 pm
Dan,are you sure this code works? I mean when battery is lets say 60%, the visible criteria is true in more than 1 panel. Especially those reds, do they display normally? Have you reached your battery very low?
Inviato Mon 01 Nov 10 @ 4:16 pm
Yes it works. Have tested fully. The battery on my development laptop doesn't hold charge, so was able to test from 100% down to 2% when it went into hibernation.
I think it's to do with how you write and how the XML is parses. You have to start with the lowest option first in the code (I think)
But this code definitely works!!
I think it's to do with how you write and how the XML is parses. You have to start with the lowest option first in the code (I think)
But this code definitely works!!
Inviato Mon 01 Nov 10 @ 4:33 pm
djtouchdan wrote :
You have to start with the lowest option first in the code (I think)
I had tried this, it didint work, but i had the opposite order, so yes this must be it!
Good work Dan ! ..and i hope your battery is not angry with you ..lol !!!!
Inviato Mon 01 Nov 10 @ 4:46 pm
Once again Scott you have pulled it out the bag. Pure class, thank you. :-)
Inviato Mon 08 Nov 10 @ 10:09 am
Всем привет! как тут скачивать симплы?
Inviato Sun 05 Dec 10 @ 4:10 pm
You have to purchase VirtualDJ Professional to be able to download this plugin. Please also bear in mind that this is an english speaking forum.
Inviato Sun 05 Dec 10 @ 7:23 pm
I\'ve just completed version 1.7 of CONDENSED which now prominently features SBDJ Battery Status! I\'m quite proud of my implementation.
Feel free to check it out here if you want to see a really nice example of this plugin in action.
http://www.virtualdj.com/addons/9801/CONDENSED.html
Feel free to check it out here if you want to see a really nice example of this plugin in action.
http://www.virtualdj.com/addons/9801/CONDENSED.html
![](/image/40199/51596/battery_status.png)
Inviato Sat 08 Jan 11 @ 2:15 pm
Very nice!
Inviato Sat 08 Jan 11 @ 3:35 pm
somebody should really port this and other SBDJ's plugins to Mac...
Inviato Mon 10 Jan 11 @ 12:15 am
Hmm... I'm learning to program for MacOS now. Perhaps I could look into that someday when I have the requisite knowledge. Hopefully someone beats me to it, though, because it could be a while yet.
Inviato Mon 10 Jan 11 @ 2:55 am
The story.
Recently i bought a new laptop (the old one died). DPC showed me all green bars except couple of yellow ones. After a few gigs with some sound pops, i deactivated the ASPI battery Manager and everything went green, no pops since then.
The problem.
After a week,when building a skin, i realized that the Battery Status Plugin wasn't working anymore. I re-activated the ASPI, and there it was.
Question
Does the Battery Status Plugin gets informations from the ASPI Manager? If yes, is there another way i can work this plugin, without ASPI?
Recently i bought a new laptop (the old one died). DPC showed me all green bars except couple of yellow ones. After a few gigs with some sound pops, i deactivated the ASPI battery Manager and everything went green, no pops since then.
The problem.
After a week,when building a skin, i realized that the Battery Status Plugin wasn't working anymore. I re-activated the ASPI, and there it was.
Question
Does the Battery Status Plugin gets informations from the ASPI Manager? If yes, is there another way i can work this plugin, without ASPI?
Inviato Thu 03 Mar 11 @ 9:23 am
Hi djdad,
Yes you are right. The Battery Status Plugin does get the information from the ASPI Manager. I too have switched this off as the DPC Latency on my machine has also improved since turning this off.
Over to SBDJ to see if there is a workaround to enable this plugin to work when this is switched off he is after all the brains behind it.
Yes you are right. The Battery Status Plugin does get the information from the ASPI Manager. I too have switched this off as the DPC Latency on my machine has also improved since turning this off.
Over to SBDJ to see if there is a workaround to enable this plugin to work when this is switched off he is after all the brains behind it.
Inviato Sat 05 Mar 11 @ 2:28 pm
Has the battery status been removed from the downloads, as I cant find it anymore. If so why???
Inviato Sun 08 May 11 @ 3:57 pm
It's still there:
http://www.virtualdj.com/addons/effects.html?category=other
http://www.virtualdj.com/addons/effects.html?category=other
Inviato Sun 08 May 11 @ 4:43 pm