Multiple Colors for...
 
Notifications
Clear all

We appreciate the contributions many of you have been able to make towards repairing the storm damage and keeping a roof over our heads. With your help weโ€™ve been able to complete much of the critical work. There is still work to be done to secure the house and your continued support will be a huge help.

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

[Closed] Multiple Colors for OSBUILD2

2 Posts
2 Users
0 Reactions
1,539 Views
(@sgrechtman)
Active Member Registered
Joined: 5 years ago
Posts: 11
Topic starter  

I was wondering if it was possible to use multiple color variables for the OSBUILD2 function. Everything I tried didn't work, so I may have had my syntax wrong. I went through the PDF for quite awhile trying to figure things out, but couldn't seem to find if this was possible or an example of someone else doing it.

Example:
OSBUILD2=display:%1{{{ (%2)}}}|Build: %3{{{ (%18)}}}

I would like to have the first section one color/style, and then the "Build:" section another color/style.

I also tried doing a custom WMI query to help me with this, but couldn't get that working either. I'm basically trying to make Win10 1909 devices show in a different color/size if possible so it's very easy to see a device running that version by glancing at the desktop.

Thanks!


   
Glenn
(@glenn)
Member Admin
Joined: 8 years ago
Posts: 1903
 

right now, DTI can do one colour per item assigned in the "color" option, so what you want is not possible. I suggest something a little more complicated ๐Ÿ™‚

in the OSBUILD2 item, assign the build number to a variable.
assign your normal colour to a new variable
if the %build% variable matches your 1909 build number then assign a new colour to your colour variable
use a TEXT item to output the build number using your colour variable in color option.


   
Glenn's Page