How To

How to Center a Window in Windows 11

Use the Windows centering helper tool to easily centralize a window on your desktop

17views

With Windows 11, the Win + Arrow shortcut key allows users to move and snap a window to the left or right of the screen. However, no hotkey or configuration can center a window in Windows 11. It is undoubtedly necessary to place a window in the center of large displays, such as ultrawide monitors or high-resolution TVs.

If you have issues placing your window in the center of your screen, this article will walk you through various steps to resolve this issue and get your system running perfectly.

1. Manually center the window

One of the easiest ways to center a window in Windows 11 is by doing it manually. The steps below will show you how to manually position your window in the center of your screen.

  1. Make use of your mouse to hold and drag the window to the desired size, then reposition the current window by using the title bar.
     Center a window in Windows 11
  2. After doing this reboot your computer.
  3. Once your computer is on, verify to see if the window is still aligned centrally on your desktop.

2. Make use of an AutoHotkey

AutoHotkey is a free and open-source scripting language for Windows, and with this tool, users may quickly develop simple to complicated scripts for various activities, including form filling, auto-clicking, macros, and window management. Easily create a script to center a window by following the steps below.

  1. Navigate to the AutoHotkey website and download AutoHotKey v2.0.
  2. Set it up by following the on-screen instructions.
     Center a window in Windows 11
  3. Open a new Notepad, then input the command below.
    Shift & c::

    global windowName
    global X
    global Y
    global begWidth
    global begHeight

    WinGetTitle, windowName, A

    WinGetPos, X, Y, begWidth, begHeight, %windowName%

    CenterWindow(windowTitleVariable)
    {
    WinGetPos,,, Width, Height, %windowTitleVariable%
    WinMove, %windowTitleVariable%,, (A_ScreenWidth/2)-(Width/2), (A_ScreenHeight/2 )-(Height/2)
    }

    CenterWindow(windowName)

    return

    RShift & b::

    WinMove, %windowName%,, X, Y, begWidth, begHeight

    return

  4. Navigate to the File menu and choose Save.
  5. Input a file name such as Center Window followed by the .ahk extension, then click Save.
    Center a window in Windows 11
  6. After doing this, run the script you just downloaded. If you receive a prompt to download v1.0, go ahead and get it.
  7. Once your script is running properly, open any application and press Windows + C to center it.

3. Make use of the Windows Centering Helper tool

With the help of a free program called Windows Centering Helper, you may manually or automatically center any window in Windows 11 by clicking a hotkey. Follow the instructions below to use this feature.

  1. Navigate to the official Windows Centering Helper site to get the installer version.
  2. Run the setup and follow any on-screen instructions to complete the process.
    Center a window in Windows 11
  3. Once the installation is complete, the app will start automatically, and a prompt will appear with the message Press 3 x [LShiftKey] to center a window.
  4. To test if it works correctly, go to a new application, and click Left Shift three times. Your window should be automatically centralized.

Final Thoughts

By utilizing the steps outlined above, you can confidently center a window on your Windows 11 device. For further assistance, reach out to us via the comment section below.

If you are having trouble opening the action center on your Windows 11 device, check out the linked article for solutions.

Leave a Response

David Ogbor
David is a tech guru with extensive knowledge in technical articles. He is passionate about writing and presents technical articles in an easy-to-understand format for easy comprehension. He aims to present easy solutions for day-to-day problems encountered while using PC. In his spare time, he likes traveling, playing sports, and singing.