Topic Tag: IF

Forums Topic Tag: IF

Viewing 8 topics - 1 through 8 (of 8 total)
    • Topic
    • Voices
    • Posts
    • Last Post
    • Display text if Uptime is greater than x days Hello, I'm a new user on this forum and I would like to deploy DI on the computers of my hospital. As the users, never reboot their computers, I would like to display a text like "Please restart your computer." if the computer has been running for more than 10 days. I tried the following commands but it shows a 0.. ** UPTIME=set:upt=%5,hidden=1 IF=value1:%upt%,value2=864000,comparator:gt COMMENT=text:,color:%Orange%,display:"Please restart your computer." ** Could you help me ? PS : Sorry i...

      Started by: Natale PantalacciNatale Pantalacci in: Desktop Info

    • 2
    • 2
    • 11 months ago

      GlennGlenn

    • Custom variable for font-size not working So I am looking to have a variable for font size % based on the DPI that is detected. My issue is that when using a percent style design it does not apply and my thought is that the variable name trips it up because of the % in the nams. So here is what I have: MONITOR=set:DPI=%7,hidden:1 IF=value1:%DPI%,comp:eq,value2:96 SET=key:fontsize,value:60% IF=value1:%DPI%,comp:eq,value2:96 SET=key:leftspace,value:130 IF=value1:%DPI%,comp:eq,value2:96 CONTROL=wide:1,left:%leftspace%,font-size:%fontsize...

      Started by: rtrussrtruss in: Desktop Info

    • 2
    • 5
    • 1 year ago

      GlennGlenn

    • Line after IF statement is displayed for some users We recently updated from v2.x to 3.2.2. Everything displays fine in our testing and it's working perfectly for most users. However, for some users it is displaying everything after an IF statement, no matter what we do to it. If=value1:1,value2:0,comparator:lt COMMENT=text:This text will display If=value1:1,value2:0,comparator:gt COMMENT=text:This text will display etc

      Started by: ArvisArvis in: Desktop Info

    • 2
    • 20
    • 2 years ago

      ArvisArvis

    • Issue passing variable value IF-statement Hi, We're currently allowing around 5 or so backgrounds by default in our organization, we use bginfo and vbscript to handle the switching of backgrounds but we feel that bginfo is lacking in a lot of places and are trying out DesktopInfo as an alternative or replacement. I'm trying to pass a bgr-value from one variable to another and then assign that variable to the color options on text-boxes, however the color is not being applied for some reason. set=key:White,value:#ffffff set=key:Blu...

      Started by: icompicomp in: Desktop Info

    • 2
    • 5
    • 2 years ago

      GlennGlenn

    • If statement to compare text My goal is to display a message if the computer is in a specific domain, but I can't get it to compare any text properly. Why doesn't this work? The text doesn't match, so the line shouldn't display, but it always does. IF=value1:test, value2:othertext, comp:eq TEXT=color:#FFFB00,font-size:115%,display: testing I've tried putting the text in quotes, using variables, different comparators, etc. It always displays the second line.

      Started by: ArvisArvis in: Desktop Info

    • 2
    • 3
    • 2 years ago

      GlennGlenn

    • IF multiline, or block execution Glen, fantastic app, I've spent hours tweaking and customising. So many possibilities. One thing I wondered is whether the IF command can be used to execute more than the next line, rather than only the following item (line) is executed. The idea being is I could use that to ignore a whole bunch of networking stats and the like if, for example, the WLAN nic is not connected. I do use the hide-no-result, but it doesn't always work with the WMI results that are returned (because the results ar...

      Started by: your-average-joeyour-average-joe in: Desktop Info

    • 2
    • 2
    • 2 years ago

      GlennGlenn

    • CONTROL inconsistencies Windows vers : 1803 / 1809 / 1903 Product vers : 2.6.0 (symptoms since > 2.3.1) I’ve experienced these symptoms using the (DTI) CONTROL function since version 2.3.1 – been unable to upgrade … I'm displaying a support button for users to click which takes them to a support URL based on the version of their OS (feature update). That is, I’d like users who are running 1903 to have a default (normal) help page (https://edin.ac/helpline) & users who have yet to move (< 1903) to our t...

      Started by: dcross@ed.ac.ukdcross@ed.ac.uk in: Desktop Info

    • 2
    • 6
    • 3 years ago

      dcross@ed.ac.ukdcross@ed.ac.uk

Viewing 8 topics - 1 through 8 (of 8 total)
Glenn's Page