Author Topic: Customizing OSD style and delay  (Read 4009 times)

0 Members and 1 Guest are viewing this topic.

jon lord

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 0
    • View Profile
Customizing OSD style and delay
« on: October 12, 2014, 04:55:15 PM »
Thanks!
Also this should be in a separate thread, but is there anyways to change the text overlay layout(colors etc) and also the time they are displayed.

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Customizing OSD style and delay
« Reply #1 on: October 12, 2014, 05:04:37 PM »
***********  get excited and make things  **********

jon lord

  • Jr. Member
  • **
  • Posts: 6
  • Karma: 0
    • View Profile
Customizing OSD style and delay
« Reply #2 on: October 13, 2014, 03:09:10 PM »
If you mean the OSD, yes - http://voxcommando.com/mediawiki/index.php?title=Actions#OSD
Hi, thanks for the reply. I've seen those settings but arent those per command? I want to set a set color for everything, but whats more important is to have a longer delay before text fades away, since I have long messages that are displayed often which I often do not read in time, for example if there are options presented etc, or does this need to be adjuster per command aswell (since the option is there)?

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Customizing OSD style and delay
« Reply #3 on: October 13, 2014, 03:33:43 PM »
Hi jon lord, drag and drop the following code in the VoxCommando commandtree. This code set the font color automatically to "black on white" when VC starts or rebuild, you can edit the command to choose other colors.
You can set a duration time in the "OSD.ShowText" action for the message.

http://voxcommando.com/mediawiki/index.php?title=Actions#ShowText

I hope this helps.

Code: [Select]
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.1.0.3-->
<commandGroup open="True" name="set font color when VC start or rebuild" enabled="True" prefix="" priority="0" requiredProcess="" description="">
  <command id="633" name="font color" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
    <action>
      <cmdType>OSD.SetColors</cmdType>
      <params>
        <param>000000</param>
        <param>FFFFFF</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <action>
      <cmdType>OSD.ShowText</cmdType>
      <params>
        <param>the color is now set black on white</param>
        <param>5000</param>
      </params>
      <cmdRepeat>1</cmdRepeat>
    </action>
    <event>VC.Loaded</event>
    <event>VC.Rebuild.Start</event>
  </command>
</commandGroup>

Note: This will change only the font color for messages which you have created with the "OSD.ShowText" action, not that are generated by VC automatically when text is recognized.
« Last Edit: October 14, 2014, 02:20:37 AM by Kalle »
***********  get excited and make things  **********

nime5ter

  • Administrator
  • Hero Member
  • *****
  • Posts: 1999
  • Karma: 61
    • View Profile
    • Getting Started with VoxCommando
Customizing OSD style and delay
« Reply #4 on: October 14, 2014, 08:50:33 AM »
Thanks Kalle! ... I think I'll start using black on white OSDs. I like it.

@jon, keep an eye on the events that Kalle is using to trigger his command above. He mentions using 2 different events.

If you don't want to trigger the command each time you close the command tree, you can delete that event and use only the VC.Loaded event to set the display colours when VC launches. (And of course you don't technically need to display a message when the command is triggered unless you find it a helpful cue.)
TIPS: POST VC VERSION #. Explain what you want VC to do. Say what you've tried & what happened, or post a video demo. Attach VC log. Link to instructions followed.  Post your command (xml)

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2320
  • Karma: 47
    • View Profile
Customizing OSD style and delay
« Reply #5 on: October 14, 2014, 11:43:27 AM »
Yes, I like it too - I had never played with this settings before  :)
Good catch nime, normaly the VC.Rebuild.Start is not needed.

Post number 15000 in the forum   ;D
***********  get excited and make things  **********