• OK, I was wrong. It took 2 minutes :)

    Here is the code:-

    app.LoadPlugin( "PuckJS" );
    
    function OnStart()
    {
      lay = app.CreateLayout( "Linear", "VCenter,FillXY" );
      txt = app.CreateText( "Press your puck" );
      lay.AddChild( txt );
      app.AddLayout( lay );
    
      puck = app.CreatePuckJS();
      puck.SetOnConnect( OnConnect );
      puck.SetOnButton( OnButton );
      puck.Scan( "Puck" );
    }
    
    function OnConnect()
    {
      puck.WatchButton( true );
    }
    
    function OnButton( state )
    {
      app.Call( "01359555555" );
    }
    
About

Avatar for Dave_Smart @Dave_Smart started