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.
- Size: Maximised, Fullscreen, Normal windowed, Minimised or a Window of a specific size?
- At a particular zoom %, etc?
- To click a button within that window?
I've been scratching my head for ages over this, so any help would be much appreciated!
-
@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-8a96869e1b9fI suggest looking at AutoHotKey or AutoIT to automate the clicks.
-
@Russ Could you create a shortcut with that parameter and start the program by calling the shortcut?
-
@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.

-
@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).
-
@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/ -
@Russ My screenshot is a .lnk shortcut as well - of Chrome opening with the URL of this discussion in a maximized window.
Zoom level is pretty moot because, unless wants to change a commonly viewed site, pretty much all browsers remember the zoom level of all sites visited. He can go to whateversite.com, set the zoom to 175%, and when the shortcut opens the site, it will be at 175%.
The clicking or scrolling is another, more complicated matter.