TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. JRSF Home
    3. Posts
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 6
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by JRSF Home

    • RE: Opening in a particular Window size

      @Russ This is great - there's some really good stuff in there that I have been exploring since your post!

      I've managed to get this to run as a batch file via the Command Prompt, but not as yet from within TriggerCMD. In the latter it only gets as far as opening the Chome window. Two things come to mind:

      1. Is there a special way of using "Timeout" - I've tried inserting && Timeout 4 && in directly in TriggerCMD actions but it seems to ignore it? Also, if I run an isolated Timeout at the Comand Prompt it becomes cancelled by any subsequent input.
      2. I've read elsewhere that in some circumstances launching an application in a script causes the rest of the script to pause until that application is closed...

      Other Notes:
      a) The Chrome Dev 'like click' only seems to work if the "Console" tab is selected. The default is "Elements" and it seems to like to return to that after a PC restart or other event
      b) Some of the hex Keypress codes are specific to keyboard layout / country. They can be found via the usual search engines and replaced 🙂
      c) I'm getting occasions where windows open in the background rather than visible and 'selected' ready for input. Not just for this, it seems it can happen when launch any shortcut, exe, url etc. Any ideas on this?

      Other developments:
      Try this for opening an app in a maximised window:

      start "" /max "File path\name.exe"
      
      posted in General Discussion
      JRSF HomeJ
      JRSF Home
    • RE: Opening in a particular Window size

      Lots of good stuff in the diologue above, so many thanks for that.

      To bring the senario to life, here's a couple of examples of what I'm trying to solve

      1. Start the morning by opening a Radio player site using Chrome in small window that shows the Channel and 'now playing' info, but leaves the bulk of the screen accessible. Current situtation - I can open the player with TriggerCMD, but then have to go to the PC to manually click on "Play", resize the window and zoom level to get the info to display correctly. As I have to go the PC anyway, this loses any benefit from automation with TriggerCMD!
      2. Watch some streaming TV whilst prepping lunch. Current situation - a small window opens as was set for Radio, and I have to manually adjust on the PC...

      A should add that some services perform best in Chrome, others to Edge or FireFox, and I also play media (Music, DVDs, and Recorded TV from various .exe's, hence the broad question posed.

      I have never found that the Maximise setting in Shorcuts works beyond the first click - after that, the last used setting overrides.

      It's a bit like shopping trolleys in the supermarket. When you arrive, you want to find them by the entrance ready to wheel straight into the store, not behind a car half way down the lot where the last person left it!

      Thanks for the pointers on places to explore. I've found a switch to tag onto the end of a Chrome launch that helps:
      --start-maximized
      Limitations: Does not work with Win10, Edge, Firefox, .exe's

      Also
      --new-window
      looks useful for browsers that do not allow apps to be created that open in their own space, e.g. FireFox. (Note this does not directly fix any of the above)

      I'd like to play a bit more with Keypress Win+Up. How do I tag this onto the end of a TriggerCMD command line? I remember seeing something in one of the tutorials / examples / posts about how to put in multiple actions using a seperator, but have never been able to find it again...

      posted in General Discussion
      JRSF HomeJ
      JRSF Home
    • Opening in a particular Window size

      Hi, is there something I can add to a command to launch a shorcut, webpage or .exe that gets it to open in a set way, e.g.

      1. Size: Maximised, Fullscreen, Normal windowed, Minimised or a Window of a specific size?
      2. At a particular zoom %, etc?
      3. To click a button within that window?

      I've been scratching my head for ages over this, so any help would be much appreciated!

      posted in General Discussion
      JRSF HomeJ
      JRSF Home
    • RE: Closing Apps created in Edge / Chrome Browsers

      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!

      posted in General Discussion
      JRSF HomeJ
      JRSF Home
    • RE: Closing Apps created in Edge / Chrome Browsers

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

      posted in General Discussion
      JRSF HomeJ
      JRSF Home
    • Closing Apps created in Edge / Chrome Browsers

      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!

      posted in General Discussion
      JRSF HomeJ
      JRSF Home