Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases
How to invert bar display ?
Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo
-
- Posts: 25
- Joined: February 15th, 2010, 10:57 am
How to invert bar display ?
Hello, i'm looking to a way to invert a bar display. For example, the CPUUsage bar start from left to right. How to display it from right to left ?
-
- Site Admin
- Posts: 305
- Joined: July 23rd, 2010, 8:32 pm
- Location: Las Vegas, NV USA
- Contact:
Re: How to invert bar display ?
hello i think there is a reversal plugin like for scrolling and other things.
-
- Plugin Author
- Posts: 276
- Joined: May 27th, 2011, 2:13 pm
- Location: Stirling, Scotland
Re: How to invert bar display ?
You can try function 3 in this dll (unzip and copy the dll to your plugin folder).
Code: Select all
$dll(Scroll,x,param1,)
Scrolling area function and fixed width area function
Function 1 - param 1 = id#width, param2=text (different id's allows multiple scroll areas)
Function 2 - param 1 = width#justification#susbt, param2=text *
justification (optional)=NONE,LEFT,RIGHT,CENTRE,CENTER (default is left)
subst (optional) default is space and is the character to substitute for filler
Function 3 - param 1 = text to be reversed
reverses the characters in a string of text i.e. left to right becomes right to left
Function 20- Returns the version number of this code
You do not have the required permissions to view the files attached to this post.
-
- Posts: 25
- Joined: February 15th, 2010, 10:57 am
-
- Plugin Author
- Posts: 276
- Joined: May 27th, 2011, 2:13 pm
- Location: Stirling, Scotland
Re: How to invert bar display ?
What would make it perfect then?
-
- Posts: 25
- Joined: February 15th, 2010, 10:57 am
-
- Plugin Author
- Posts: 276
- Joined: May 27th, 2011, 2:13 pm
- Location: Stirling, Scotland
Re: How to invert bar display ?
Okay, I've added function 4 which reverses the two bars causing the problem. It uses 2 additional custom characters.
Let me know how it goes.
Let me know how it goes.
Code: Select all
Function 4 - param 1 = Bars to be reversed
reverses the order of bars i.e. left to right becomes right to left
You do not have the required permissions to view the files attached to this post.
-
- Posts: 25
- Joined: February 15th, 2010, 10:57 am
-
- Plugin Author
- Posts: 276
- Joined: May 27th, 2011, 2:13 pm
- Location: Stirling, Scotland
Re: How to invert bar display ?
Hi,
i'm pretty sure this is a limitation of the $Bar function since it only uses 2 custom character definitions to represent 4 possible states.
I've created a replacement bar function within scroll to compensate for this. So we now have:
Let me know how you get on with this.
i'm pretty sure this is a limitation of the $Bar function since it only uses 2 custom character definitions to represent 4 possible states.
I've created a replacement bar function within scroll to compensate for this. So we now have:
Code: Select all
Scrolling area function and fixed width area function
Function 1 - param 1 = id#width, param2=text (different id's allows multiple scroll areas)
Function 2 - param 1 = width#justification#susbt, param2=text *
justification (optional)=NONE,LEFT,RIGHT,CENTRE,CENTER (default is left)
subst (optional) default is space and is the character to substitute for filler
Function 3 - param 1 = text to be reversed
reverses the characters in a string of text i.e. left to right becomes right to left
Function 4 - param 1 = Bars to be reversed
reverses the order of bars i.e. left to right becomes right to left
only works for smartie built in bar function (uses custom characters 3 & 4))
Function 5 - a bar function
param 1 - current#total - current value and maximum value
param 2 - length of the bar
This uses an additional 2 custom chars (5 & 6) to provide all states
example: $dll(Scroll,5,$CPUUsage%#100,10)
Note the use of the # character
Function 6 - a reverse bar function (outputs a mirror of function 5))
param 1 - current#total - current value and maximum value
param 2 - length of the bar
This uses an additional 2 custom chars (7 & 8) to provide all states
example: $dll(Scroll,6,$CPUUsage%#100,10)
Note the use of the # character
Function 20- Returns the version number of this code
You do not have the required permissions to view the files attached to this post.
-
- Site Admin
- Posts: 305
- Joined: July 23rd, 2010, 8:32 pm
- Location: Las Vegas, NV USA
- Contact:
Re: How to invert bar display ?
If you don't mind, I would like to use this plug in as well as I think it is pretty cool and I have a pretty awesome use for it. Will this work with the Winamp bar command as well? Also can it be used on the same line as a regular bar to have them close in on each other? Cheers!dperrow wrote:Hi,
i'm pretty sure this is a limitation of the $Bar function since it only uses 2 custom character definitions to represent 4 possible states.
I've created a replacement bar function within scroll to compensate for this. So we now have:
Let me know how you get on with this.Code: Select all
Scrolling area function and fixed width area function Function 1 - param 1 = id#width, param2=text (different id's allows multiple scroll areas) Function 2 - param 1 = width#justification#susbt, param2=text * justification (optional)=NONE,LEFT,RIGHT,CENTRE,CENTER (default is left) subst (optional) default is space and is the character to substitute for filler Function 3 - param 1 = text to be reversed reverses the characters in a string of text i.e. left to right becomes right to left Function 4 - param 1 = Bars to be reversed reverses the order of bars i.e. left to right becomes right to left only works for smartie built in bar function (uses custom characters 3 & 4)) Function 5 - a bar function param 1 - current#total - current value and maximum value param 2 - length of the bar This uses an additional 2 custom chars (5 & 6) to provide all states example: $dll(Scroll,5,$CPUUsage%#100,10) Note the use of the # character Function 6 - a reverse bar function (outputs a mirror of function 5)) param 1 - current#total - current value and maximum value param 2 - length of the bar This uses an additional 2 custom chars (7 & 8) to provide all states example: $dll(Scroll,6,$CPUUsage%#100,10) Note the use of the # character Function 20- Returns the version number of this code
-
- Site Admin
- Posts: 305
- Joined: July 23rd, 2010, 8:32 pm
- Location: Las Vegas, NV USA
- Contact:
Re: How to invert bar display ?
If you don't mind, I would like to use this plug in as well as I think it is pretty cool and I have a pretty awesome use for it. Will this work with the Winamp bar command as well? Also can it be used on the same line as a regular bar to have them close in on each other? Cheers!dperrow wrote:Hi,
i'm pretty sure this is a limitation of the $Bar function since it only uses 2 custom character definitions to represent 4 possible states.
I've created a replacement bar function within scroll to compensate for this. So we now have:
Let me know how you get on with this.Code: Select all
Scrolling area function and fixed width area function Function 1 - param 1 = id#width, param2=text (different id's allows multiple scroll areas) Function 2 - param 1 = width#justification#susbt, param2=text * justification (optional)=NONE,LEFT,RIGHT,CENTRE,CENTER (default is left) subst (optional) default is space and is the character to substitute for filler Function 3 - param 1 = text to be reversed reverses the characters in a string of text i.e. left to right becomes right to left Function 4 - param 1 = Bars to be reversed reverses the order of bars i.e. left to right becomes right to left only works for smartie built in bar function (uses custom characters 3 & 4)) Function 5 - a bar function param 1 - current#total - current value and maximum value param 2 - length of the bar This uses an additional 2 custom chars (5 & 6) to provide all states example: $dll(Scroll,5,$CPUUsage%#100,10) Note the use of the # character Function 6 - a reverse bar function (outputs a mirror of function 5)) param 1 - current#total - current value and maximum value param 2 - length of the bar This uses an additional 2 custom chars (7 & 8) to provide all states example: $dll(Scroll,6,$CPUUsage%#100,10) Note the use of the # character Function 20- Returns the version number of this code
-
- Plugin Author
- Posts: 276
- Joined: May 27th, 2011, 2:13 pm
- Location: Stirling, Scotland
Re: How to invert bar display ?
Don't use the Winamp plugin so I don't know - try it and let us know.
It should work okay with the bar function. Again, try it and let us know.
It should work okay with the bar function. Again, try it and let us know.
-
- Site Admin
- Posts: 305
- Joined: July 23rd, 2010, 8:32 pm
- Location: Las Vegas, NV USA
- Contact:
Re: How to invert bar display ?
Okay will do. I'm going to try it right now and see if it works with winamp and the way I'm thinking it might...dperrow wrote:Don't use the Winamp plugin so I don't know - try it and let us know.
It should work okay with the bar function. Again, try it and let us know.
-
- Site Admin
- Posts: 305
- Joined: July 23rd, 2010, 8:32 pm
- Location: Las Vegas, NV USA
- Contact:
Re: How to invert bar display ?
Yes it works the way I thought it would
Here is the string I came up with to make it work properly:
I have omitted all the $dll(sandr,1,,) strings from here that I have to use to make the bars and such show up on my customer displays. With those strings all in there one would get really confused lol.

Code: Select all
$dll(Scroll.dll,5,$Winamppos#$WinampLength,10)$dll(Scroll.dll,6,$Winamppos#$WinampLength,10)