Set window size and position to default settings at every startup

Features wanted...
Post Reply
chocolatebarmutton
Posts: 11
Joined: 11 Aug 2021 21:29

Set window size and position to default settings at every startup

Post by chocolatebarmutton »

It would be good if there are options to always use the default settings for Windows size and Windows position every time XYplorer is started.

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Set window size and position to default settings at every startup

Post by highend »

From the help file
/win (extended syntax)

The switch /win can also be used to specify the main window position and dimension at startup, overwriting the values in the INI file. Each value is optional and if missing the value found in the INI file is used. General format:

/win=[min|max|normal|tray],[x],[y],[width],[height]

Examples:

/win=normal,40,20,1200,800

/win=,20,20,1200 -> window state and height from INI

/win=,,,1000,800 -> window state and position from INI

/win=min -> start minimized (other values from INI)

/win=max,,,,400 -> start maximized, restore to height 400

/win=tray,40,20,1200,400 -> start minimized to tray
One of my scripts helped you out? Please donate via Paypal

chocolatebarmutton
Posts: 11
Joined: 11 Aug 2021 21:29

Re: Set window size and position to default settings at every startup

Post by chocolatebarmutton »

Thanks for this idea, but that's not what I'm looking for. I just want the original default window size and position.

An example of exactly what I mean. When you install XYplorer for the first time on the Windows device and start XYplorer after the installation you see the original default window size and position. This original window default size and position is always different if the host has a different screen resolution.

In the screenshot you can see that there are only 5 different options for the Startup window state option:
- Last state
- Minimized
- Normal
- Maximized
- Tray
Capture.PNG
It would be very good if a sixth option can be added, which is called -> Default size and position

Additionally a seventh option should be added to manually set a specified window size and position without a command line.
To see the attached files, you need to log into the forum.

Post Reply