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

Closing Apps created in Edge / Chrome Browsers

General Discussion
2
4
270
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.
  • J
    JRSF Home
    last edited by Mar 15, 2025, 10:59 AM

    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!

    R 1 Reply Last reply Mar 16, 2025, 3:19 PM Reply Quote 0
    • R
      Russ @JRSF Home
      last edited by Russ Mar 16, 2025, 3:22 PM Mar 16, 2025, 3:19 PM

      @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

      J 1 Reply Last reply Mar 20, 2025, 4:47 PM Reply Quote 1
      • J
        JRSF Home @Russ
        last edited by Mar 20, 2025, 4:47 PM

        @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!

        J 1 Reply Last reply Mar 28, 2025, 4:24 PM Reply Quote 0
        • J
          JRSF Home @JRSF Home
          last edited by Mar 28, 2025, 4:24 PM

          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