If your Windows window is not the right size, you can force it to return to a specific size. This is useful if you frequently resize a window and want it to always open at the same size. There are several ways to force a window to return to a specific size. One way is to use the built-in Windows settings. Another way is to use a third-party utility. Additionally, you can use the command line to force a window to return to a specific size.
To use the built-in Windows settings, first, open the window that you want to resize. Next, click on the “Window” menu and select “Size and Position.” In the “Size and Position” dialog box, enter the desired width and height for the window. Finally, click on the “OK” button to save your changes. The window will now return to the specified size whenever it is opened.
If you prefer not to use the built-in Windows settings, you can use a third-party utility. There are several free and paid third-party utilities available that can help you force a window to return to a specific size. One popular free utility is called “Sizer.” Sizer is a simple and easy-to-use utility that allows you to resize and position windows with precision. Additionally, Sizer can be used to save and restore window sizes and positions. To use Sizer, first, download and install the utility. Next, launch Sizer and click on the “Add” button. In the “Add Window” dialog box, select the window that you want to resize. Finally, click on the “OK” button to save your changes.
Prerequisites
Ensure PowerShell is installed and accessible on your system.
PowerShell Script Execution
1. Open PowerShell as Administrator
Right-click the Windows Start menu and select “Windows PowerShell (Admin)”.
2. Copy PowerShell Script
Copy the following PowerShell script into a text editor:
$wshell = New-Object -ComObject WScript.Shell $wshell.Run("C:\path\to\exe.exe", 1)
3. Replace Path
Replace “C:\path\to\exe.exe” with the actual path to the application you want to force to the same size.
4. Save Script
Save the script with a “.ps1” extension, such as “ForceWindow.ps1”.
5. Open Script Folder
Open File Explorer and navigate to the folder where you saved the script.
6. Right-Click and Select
Right-click on the script file and select “Run with PowerShell”.
7. Confirm Execution
When prompted, confirm that you want to run the script by clicking “Run”.
8. Window Handling
The script attempts to restore the window size of the specified application to its original dimensions. If the application is not already running, the script will launch it and handle its window size on startup. The script can be modified to handle multiple applications or use parameters for window size adjustments.
Parameter | Description |
---|---|
-Path | Path to the application executable |
-Width | Width of the window in pixels |
-Height | Height of the window in pixels |
System Restore
To perform a system restore:
- Right-click the Start button and select “Run.”
- Type “rstrui.exe” and click “OK.”
- Click “Next” to start the System Restore wizard.
- Select a restore point from the list and click “Next.”
- Confirm the restore point and click “Finish.”
- Wait for the system restore to complete.
- Once the system restore is complete, click “Restart.”
Your computer will restart and the system restore will be complete.
Additional Information:
System Restore creates restore points automatically when you install new software or drivers, or when you make changes to system settings. You can also create restore points manually at any time. To create a manual restore point:
- Right-click the Start button and select “Control Panel.”
- Click “System and Security.”
- Click “System Protection.”
- Click the “Create” button.
- Type a name for the restore point and click “Create.”
The restore point will be created and listed in the System Restore window.
Restore Point | Date and Time |
---|---|
Automatic Restore Point | MM/DD/YYYY HH:MM |
Manual Restore Point | MM/DD/YYYY HH:MM |
To delete a restore point, select it from the list and click the “Delete” button.
How To Force Windows To Return To Same Size
If you’ve ever accidentally resized a window on your desktop, you know how frustrating it can be to try to get it back to its original size. Fortunately, there are a few simple steps you can follow to force a window to return to its default size.
-
Click on the window’s title bar and hold down the mouse button.
-
Drag the mouse to the edge of the screen until the window snaps back to its original size.
-
Release the mouse button.
People Also Ask
How do I force a window to return to its default size in Windows 10?
Follow the steps outlined in the main article to force a window to return to its default size in Windows 10.
How do I get a window to snap back to its original size?
Drag the window’s title bar to the edge of the screen until it snaps back to its original size.
How do I resize a window without dragging the edges?
You can use the keyboard shortcuts Ctrl + Alt + 8 to resize a window without dragging the edges.