Facility Control

 View Only
  • 1.  Keyboard Shortcuts

    Posted 29 days ago

    Are there any keyboard shortcuts for navigating Dashboard / Carbonite? Oddly as a TD, you'd think I'd be better at typing. 

    Thanks



    ------------------------------
    [Danny] [Skarka] Ross Pilot since Synergy
    [Producer, Director, Technical Director]
    San Francisco United States
    ------------------------------


  • 2.  RE: Keyboard Shortcuts

    Posted 28 days ago

    Here's an example watching for triggers on keyboard - uses spacebar but any character/key can be used really

    <abs contexttype="opengear" gridsize="20" id="_top" keepalive="false">
       <meta>
          
          <ogscript handles="onclick,onkeypress" targetid="A">var code = event.getKeyCode();
    var str = event.getKeyChar();
    var keyText = String.fromCharCode(code);
    ogscript.debug(keyText + ' ' + str);
    ogscript.rename('labelA', "This keyCode " + keyText + "\nalso this keyChar " + str + " triggers my thing");
    
    /* 
     *  Put a function here to trigger based on event above.
     *  filter the key press you wish to trigger the action.
     *  i.e. for trigger on pressing spacebar
     *  if (str === 32){function(){
     *  ogscript.debug('SpaceBar Pressed - Do something!');
     *  }
     */
    
    //if (str === 32){
    //   ogscript.debug('SpaceBar Pressed - Do something!');
    //   }
    
    
    //ogscript.debug(event.getKeyChar());
    //ogscript.debug(event.getKeyCode());
    //ogscript.debug(event.keyChar);
    //ogscript.debug(event.toString());
    //ogscript.debug(event.getSource());
    //ogscript.debug(event.keyLocation);
    //ogscript.debug(event.getComponent());</ogscript>
          <params>
             <param access="1" constraint="-255.0;255.0;-255.0;255.0;1" constrainttype="INT_STEP_RANGE" name="Fader Left" oid="fader.left" precision="0" type="INT16" value="0" widget="slider-vertical"/>
             <param access="1" constraint="0.0;100.0;0.0;100.0;1" constrainttype="INT_STEP_RANGE" name="Fader Right" oid="fader.right" precision="0" type="INT16" value="13" widget="slider-vertical"/>
          </params>
       </meta>
    <abs height="140" left="20" style="bg#8AE4BB;bdr:round;" top="20" width="480">
          <button buttontype="push" height="100" id="A" left="20" name="Button A" style="bg#DF4646;" top="20" width="80">
             <task tasktype="ogscript">ogscript.rename('labelA', "this triggers my button");</task>
          </button>
          <label height="100" id="labelA" left="120" style="txt-align:center;size:Big;bg#D9C3A7;" top="20" width="340"/>
       </abs>
    </abs>
    


    ------------------------------
    Richard Crutwell
    Ross Video UK
    ------------------------------