TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Combining commands

    General Discussion
    2
    4
    1.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User
      last edited by

      I want to have a command that opens a video in chrome on Windows 10, then makes it full screen and also starts playing it if there is an icon on the screen you need to press to start playing. Im sure this is possible - how would I structure that command?

      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @A Former User
        last edited by

        @brad-Schmidt, would it be a youtube video? If not, can you send me an example URL to the video?

        Russell VanderMey

        ? 1 Reply Last reply Reply Quote 0
        • ?
          A Former User @Russ
          last edited by

          @russ Sorry I didn't see your reply. Here's an example of a video I'd like to open full screen and playing using triggercmd on Win 10. https://nefleaglecam.org/ It's the first video on the page.

          RussR 1 Reply Last reply Reply Quote 0
          • RussR
            Russ @A Former User
            last edited by Russ

            @brad-schmidt, I did some more research and I think I have way that's not terribly difficult.

            • Install nodejs if it's not already installed.
            • Create a folder like: c:\eaglecam
            • Download and unzip the version of the chrome webdriver for your version of Chrome into that folder.
              http://chromedriver.chromium.org/downloads
            • Copy/paste the code below into a file called play.js in your folder.
            • Open a cmd prompt and type: cd \eaglecam
            • Run: npm install selenium-webdriver
            • Run: node play.js
            • If that works, open the TRIGGERcmd GUI and create a this command: 😄 & cd \eaglecam & node play.js
            const {Builder, By, Key, until} = require('selenium-webdriver');
            
            var driver = new Builder()
                .forBrowser('chrome')
                .build();
            
            driver.manage().window().maximize();
            
            driver.get('https://portal.hdontap.com/s/embed/?stream=aef-nefl-CUST-multicam&ratio=16:9&fluid=true')
                .then(_ =>
            driver.sleep(2000))
            .then(_ =>
            driver.findElement(By.className('vjs-big-play-button')).click())
            

            Russell VanderMey

            1 Reply Last reply Reply Quote 0
            • First post
              Last post