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

    Opening in a particular Window size

    General Discussion
    3
    6
    11
    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 JRSF Home

      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!

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

        @JRSF-Home, I asked ChatGPT about #1 because I remembered it's possible to launch an app minimized or maximized with the start command:
        https://chatgpt.com/share/68fcce56-9d20-8004-9046-8a96869e1b9f

        I suggest looking at AutoHotKey or AutoIT to automate the clicks.

        Russell VanderMey

        XanderX 1 Reply Last reply Reply Quote 0
        • XanderX
          Xander @Russ
          last edited by

          @Russ Could you create a shortcut with that parameter and start the program by calling the shortcut?

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

            @Xander, I'm finding that only some executables, like notepad.exe support starting them maximized, minimized or normal. If make a shortcut (.lnk file) that targets one of those executables, you can specify it in shortcut settings.

            a2d4e89a-cd64-4c15-af70-988ffaabd8ab-image.png

            Russell VanderMey

            XanderX 1 Reply Last reply Reply Quote 0
            • XanderX
              Xander @Russ
              last edited by

              @Russ The request for #1 was "launch a shorcut, webpage or .exe" so creating a shortcut this way covers it, no? The shortcut I just created opens a maximized window in Chrome to this page.
              My only point being that it might not be necessary to reinvent the wheel. OP would still need to work out the zoom (but remember that browsers remember the zoom level of a given website so that pretty much covers the second step).

              254715c2-a5c8-44f1-8f39-5aeb0e3404a9-image.png

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

                @Xander, I thought by "shortcut" he was talking about a Windows shortcut like I screenshotted above, not a TRIGGERcmd shortcut. I think he wants to create a TRIGGERcmd command that makes sure the app (maybe Chrome?) launches maximized, starts with a particular zoom % (Chrome can be zoomed).

                Assuming it's Chrome, I have my script launch it maximized, then effectively type CTRL 0, then CTRL + once or twice to adjust the zoom.

                Here's a list of parameters Chrome takes, but none of them are the zoom level, so you'd have to simulate key presses with nircmd or an AutoIT script or similar.
                https://peter.sh/experiments/chromium-command-line-switches/

                Russell VanderMey

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