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

    Closing Apps created in Edge / Chrome Browsers

    General Discussion
    2
    4
    142
    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.
    • JRSF HomeJ
      JRSF Home
      last edited by

      I have my streaming TV / Media services set up as browser apps - it keeps them separate from any other browser activity and allows opening directly in fullscreen mode etc.
      I can successfully open these in TriggerCMD using shortcuts, but haven't yet found a way of closing them.

      Open commands take the form:

      "C:\Program Files (x86)\Microsoft\Edge\Application\msedge_proxy.exe" --profile-directory=Default --app-id=[xxx] --app-url=https://www.bbc.co.uk/iplayer --app-launch-source=4

      or
      "C:\Program Files\Google\Chrome\Application\chrome_proxy.exe" --profile-directory="Profile 1" --app-id=[xxx]

      where [xxx] is the unique App ID in each case

      Any idea what the structure of the 'Off Command' might need to look like? I've had a play with a few variations on taskkill /f /im ... but am just stabbing around in the dark!

      RussR 1 Reply Last reply Reply Quote 0
      • RussR
        Russ @JRSF Home
        last edited by Russ

        @JRSF-Home , this worked for me to open and close the Trigger CMD PWA:

        Command:

        "C:\Program Files (x86)\Microsoft\Edge\Application\msedge_proxy.exe"  --profile-directory=Default --app-id=ehccgonefendpahldcmdgdmbkpbdmhbg --app-url=https://app.triggercmd.com/ --app-launch-source=4
        

        Off Command:

        taskkill /FI "WINDOWTITLE eq Trigger CMD"
        

        I got that "Trigger CMD" text from the title of the PWA window.
        bb23a6b2-1ab7-4d0e-8a44-4b36218927eb-image.png

        Russell VanderMey

        JRSF HomeJ 1 Reply Last reply Reply Quote 1
        • JRSF HomeJ
          JRSF Home @Russ
          last edited by

          @Russ Thanks, ythat Works!

          I've found the title changes as you navigate different pages on some sites so have used a key phrase from the title and added the wildcard * to make it more robust. Your example then becomes:

          taskkill /FI "WINDOWTITLE eq Trigger CMD*"

          I've found that it does not work if the window happens to be minimised, which is a bit of a pain!

          JRSF HomeJ 1 Reply Last reply Reply Quote 0
          • JRSF HomeJ
            JRSF Home @JRSF Home
            last edited by

            I've found out a bit more about why the taskkill command does not always work. If there is more than one instance of the browser open, only the one that Windows perceives to be active shows up in the task list. So if the browser App is minimised or you switch focus to another browser window, it 'dissappears' from the task list and the taskkill command fails.

            Unfortunately I haven't found a workaround yet!

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