1 Reply Latest reply on Apr 21, 2016 11:13 AM by Glenn Sayer

    Launching RDP session with Start Page

    Mark Mann

      Team,

       

      I have a customer that is using a Start Page for Rho and EB and they would like to have the ability to have one of the buttons on the start page to launch the RDP shortcut on VC70.  They currently have two buttons.  One that will launch the Wavelink TelnetCE client and one that will exit them out of the start page which prompts for password.  Now they want to add a third button that will launch RDP.  Has anyone done this on the start page to launch RDP with validations to make sure they are not opening more than one session?

       

      Below is a snippet of code that they wrote for the Wavelink Telnet application.  I'm assuming the same could be done for Remote Desktop (RDP);

       

          //Start wavelink telnet (SAP)

          function doWavelink()

          {

      //rho      var wavelinkPath = gen.GetRegistrySetting(2, 'SOFTWARE\\Wavelink\\TelnetCE', 'FlashDir') + '\\TelnetCE.exe';

            var wavelinkPath = EB.System.getRegistrySetting(2, 'SOFTWARE\\Wavelink\\TelnetCE', 'FlashDir') + '\\TelnetCE.exe';

            var wavelinkCL = '';

      //rho      wavelinkID = gen.LaunchProcessNonBlocking(wavelinkPath, wavelinkCL); 

            wavelinkID = EB.System.runApplication(wavelinkPath, wavelinkCL, False);

       

      //rho      gen.InvokeMetaFunction('application', 'minimize');

            EB.Application.minimize();

            setTimeout('doWavelinkThread()', 10);

          }

         

          function doWavelinkThread()

          {

         if(gen.GetProcessExitCode(wavelinkID) == 0)

            {

              wavelinkID = -1;

      //rho        gen.InvokeMetaFunction('application', 'restore');

              EB.Application.restore();

          document.location.reload();

            }

            else

              setTimeout('doWavelinkThread()', 1000);

          }

       

      Cheers,

       

      Mark