Force app to open centered on the screen


Subscriber43

Active member
Member
Local time
11:12 PM
Posts
182
OS
Windows 11 Dev
There are certain programs that open off to one corner of the screen every time (e.g. Device Manager).
Is there any way to force the program to open centered on the screen?

Google shows some solutions (background programs with hot keys), but none of these work in Windows 11.
Here are two I tried. The first one crashes on load. The second one loads okay, but does not work.

Windows 11 Dev 25126

Thanks.
 

My Computer

System One

  • OS
    Windows 11 Dev
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M75Q-1
    CPU
    AMD Ryzen 5 Pro 3400GE @3.30 GHz (4.0 GHz Turbo)
    Motherboard
    Lenovo 3151
    Memory
    20 GB DDR4 2666 (1x16GB + 1x4GB)
    Graphics Card(s)
    AMD Radeon Vega 11
    Sound Card
    Integrated
    Monitor(s) Displays
    AOC 2369
    Screen Resolution
    1920 x 1080
    Hard Drives
    WD 512 GB NVME + SPCC 240GB SATA SSD
    PSU
    External 65W
    Case
    Mini (1L)

Berton

Well-known member
Member
VIP
Local time
9:12 PM
Posts
673
Location
Wyoming
OS
Win11 Pro RTM x64
It somewhat worked in Win10 and may in Win11 but I would size a program's window and locate on screen as desired then when clicking X to close while holding down the Ctrl key in 'training' Windows how to reopen. Usually took a few times to get it.
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM x64
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5
    Memory
    8GB
    Hard Drives
    256GB SSD NVMe
  • Operating System
    Windows 11 Pro RTM x64
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA using DisplayPort-to-VGA adapter
    Monitor(s) Displays
    21"
    Hard Drives
    512GB SSD NVMe, 2TB WDC HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security

Subscriber43

Active member
Member
Thread Starter
Local time
11:12 PM
Posts
182
OS
Windows 11 Dev
It somewhat worked in Win10 and may in Win11 but I would size a program's window and locate on screen as desired then when clicking X to close while holding down the Ctrl key in 'training' Windows how to reopen. Usually took a few times to get it.
Yeah, I know this used to work for some programs in previous versions of Windows, but it apparently has no effect in Windows 11.
 

My Computer

System One

  • OS
    Windows 11 Dev
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M75Q-1
    CPU
    AMD Ryzen 5 Pro 3400GE @3.30 GHz (4.0 GHz Turbo)
    Motherboard
    Lenovo 3151
    Memory
    20 GB DDR4 2666 (1x16GB + 1x4GB)
    Graphics Card(s)
    AMD Radeon Vega 11
    Sound Card
    Integrated
    Monitor(s) Displays
    AOC 2369
    Screen Resolution
    1920 x 1080
    Hard Drives
    WD 512 GB NVME + SPCC 240GB SATA SSD
    PSU
    External 65W
    Case
    Mini (1L)

Ghot

Well-known member
Pro User
VIP
Local time
11:12 PM
Posts
3,118
Location
PA, USA
OS
Win 11 Home ♦♦♦22000.778
Yeah, I know this used to work for some programs in previous versions of Windows, but it apparently has no effect in Windows 11.


Might want to try this...


It will save the positions of any/all windows, for the next time you open them.
 

My Computers

System One System Two

  • OS
    Win 11 Home ♦♦♦22000.778
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® [May 2020]
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    Asus Pro WS X570-ACE
    Memory
    G.Skill (F4-3200C14D-16GTZKW)
    Graphics Card(s)
    EVGA RTX 2070 (08G-P4-2171-KR)
    Sound Card
    (onboard) Realtek ALC1220P / ALC S1220A
    Monitor(s) Displays
    Dell U3011 30"
    Screen Resolution
    2560 x 1600
    Hard Drives
    2x Samsung 860 EVO 500GB,
    WD 4TB Black FZBX - SATA III,
    WD 8TB Black FZBX - SATA III,
    LG GH22LS30 CD/DVD Burner
    PSU
    PC Power & Cooling 750W Quad EPS12V
    Case
    COOLER MASTER ATCS 840 Full Tower
    Cooling
    CM Hyper 212 EVO (push/pull)
    Keyboard
    Ducky DK9008 Shine II Blue LED
    Mouse
    Logitech Optical M-100
    Internet Speed
    100/100
    Browser
    Firefox (latest)
    Antivirus
    Bitdefender Internet Security (latest)
    Other Info
    Speakers: Klipsch Pro Media 2.1
  • Operating System
    Windows XP Pro 32bit w/SP3
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot®
    CPU
    AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)
    Motherboard
    ASUS M2N32-SLI Deluxe Wireless Edition
    Memory
    TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)
    Graphics card(s)
    EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Sound Card
    Onboard
    Monitor(s) Displays
    ViewSonic G90FB Black 19" Professional (CRT)
    Screen Resolution
    up to 2048 x 1536
    Hard Drives
    WD 36GB 10,000rpm Raptor SATA
    Seagate 80GB 7200rpm SATA
    Lite-On LTR-52246S CD/RW
    Lite-On LH-18A1P CD/DVD Burner
    PSU
    PC Power & Cooling Silencer 750 Quad EPS12V
    Case
    Generic Beige case, 80mm fans
    Cooling
    ZALMAN 9500A 92mm CPU Cooler
    Mouse
    Logitech Optical M-BT96a
    Keyboard
    Logitech Classic Keybooard 200
    Internet Speed
    100/100
    Browser
    Firefox 3.x ??
    Antivirus
    Symantec (Norton)
    Other Info
    Still assembled, still runs. Haven't turned it on for 13 years?

    http://www.xtremesystems.org/forums/showthread.php?183088-5000-B-E-on-M2N32-SLI-Dlx-Overclocked&p=2891724#post2891724

Subscriber43

Active member
Member
Thread Starter
Local time
11:12 PM
Posts
182
OS
Windows 11 Dev
Might want to try this...


It will save the positions of any/all windows, for the next time you open them.
Thanks. Checking it out now.
 

My Computer

System One

  • OS
    Windows 11 Dev
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M75Q-1
    CPU
    AMD Ryzen 5 Pro 3400GE @3.30 GHz (4.0 GHz Turbo)
    Motherboard
    Lenovo 3151
    Memory
    20 GB DDR4 2666 (1x16GB + 1x4GB)
    Graphics Card(s)
    AMD Radeon Vega 11
    Sound Card
    Integrated
    Monitor(s) Displays
    AOC 2369
    Screen Resolution
    1920 x 1080
    Hard Drives
    WD 512 GB NVME + SPCC 240GB SATA SSD
    PSU
    External 65W
    Case
    Mini (1L)

TraderGary

Stock Market Wizard
Member
VIP
Local time
11:12 PM
Posts
337
Location
Atlanta, GA, USA
OS
Windows 11 Pro
A well written Windows Program that follows Windows standards should save its size, position, and configuration in its program data area when closing. When it reopens, the program first looks for those parameters and then opens exactly how you left it.

It's interesting that your example of "Device Manager" does not follow good Windows programming standards. An example of a program that does would be "Task Manager". Task Manager always opens the same way you left it. Device Manager does not and does not follow good Windows programming standards. Boo, Hiss.
 

My Computer

System One

  • OS
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    Dell XPS 15 9510 OLED
    CPU
    11th Gen i9 -11900H
    Memory
    32 GB 3200 MHz DDR4
    Graphics Card(s)
    NVIDIA® GeForce® RTX 3050Ti
    Monitor(s) Displays
    15.6" OLED Infinity Edge Touch
    Screen Resolution
    16:10 Aspect Ratio (3456 x 2160)
    Hard Drives
    1 Terabyte M.2 PCIe NVMe SSD
    2 Thunderbolt™ 4 (USB Type-C™)
    1 USB 3.2 Gen 2 (USB Type-C™)
    SD Card Reader (SD, SDHC, SDXC)
    Mouse
    Logitech MX Master 3
    Internet Speed
    700 Mbps, 24 Mbps
    Browser
    Microsoft Edge (Chromium)
    Antivirus
    Microsoft Windows Security (Defender)
    Other Info
    Microsoft 365 subscription
    Microsoft OneDrive 1TB Cloud
    Microsoft File History

    Interactive Brokers Trader Workstation
    Lightroom/Photoshop subscription
    DaVinci Resolve Studio
    Microsoft Visual Studio

Subscriber43

Active member
Member
Thread Starter
Local time
11:12 PM
Posts
182
OS
Windows 11 Dev
A well written Windows Program that follows Windows standards should save its size, position, and configuration in its program data area when closing. When it reopens, the program first looks for those parameters and then opens exactly how you left it.

It's interesting that your example of "Device Manager" does not follow good Windows programming standards. An example of a program that does would be "Task Manager". Task Manager always opens the same way you left it. Device Manager does not and does not follow good Windows programming standards. Boo, Hiss.
Couldn't have said it better.
 

My Computer

System One

  • OS
    Windows 11 Dev
    Computer type
    PC/Desktop
    Manufacturer/Model
    Lenovo ThinkCentre M75Q-1
    CPU
    AMD Ryzen 5 Pro 3400GE @3.30 GHz (4.0 GHz Turbo)
    Motherboard
    Lenovo 3151
    Memory
    20 GB DDR4 2666 (1x16GB + 1x4GB)
    Graphics Card(s)
    AMD Radeon Vega 11
    Sound Card
    Integrated
    Monitor(s) Displays
    AOC 2369
    Screen Resolution
    1920 x 1080
    Hard Drives
    WD 512 GB NVME + SPCC 240GB SATA SSD
    PSU
    External 65W
    Case
    Mini (1L)

Marawan

New member
Local time
4:12 AM
Posts
1
OS
Win11
I tried both of the apps you referred to and they work properly and center windows.
If you want to center windows launched with admin rights (like Device Manager) then you
have to start these apps as admin as well, otherwise they will not work.

You can always launch them as admin by specifying that in their shortcut.
 

My Computer

System One

  • OS
    Win11

Itchypiles

Member
Local time
4:12 AM
Posts
12
OS
Win 11 pro
I assume the MaxSecure detection is a false positive, as none of the better known brands detected anything amiss.
 

My Computer

System One

  • OS
    Win 11 pro
    Computer type
    PC/Desktop

akbar291

New member
Local time
8:12 PM
Posts
8
OS
10
There are certain programs that open off to one corner of the screen every time (e.g. Device Manager).
Is there any way to force the program to open centered on the screen?

Google shows some solutions (background programs with hot keys), but none of these work in Windows 11.
Here are two I tried. The first one crashes on load. The second one loads okay, but does not work.

Windows 11 Dev 25126

Thanks.
Nice tool for snap in center (But Manual)
GitHub - veringsek/snap-assist-for-centering: A supplement to Windows Snap Assist, which helps centering a window if the cursor is at the center of the screen when the window is dropped.
 

My Computer

System One

  • OS
    10

Ghot

Well-known member
Pro User
VIP
Local time
11:12 PM
Posts
3,118
Location
PA, USA
OS
Win 11 Home ♦♦♦22000.778

My Computers

System One System Two

  • OS
    Win 11 Home ♦♦♦22000.778
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot® [May 2020]
    CPU
    AMD Ryzen 7 3700X
    Motherboard
    Asus Pro WS X570-ACE
    Memory
    G.Skill (F4-3200C14D-16GTZKW)
    Graphics Card(s)
    EVGA RTX 2070 (08G-P4-2171-KR)
    Sound Card
    (onboard) Realtek ALC1220P / ALC S1220A
    Monitor(s) Displays
    Dell U3011 30"
    Screen Resolution
    2560 x 1600
    Hard Drives
    2x Samsung 860 EVO 500GB,
    WD 4TB Black FZBX - SATA III,
    WD 8TB Black FZBX - SATA III,
    LG GH22LS30 CD/DVD Burner
    PSU
    PC Power & Cooling 750W Quad EPS12V
    Case
    COOLER MASTER ATCS 840 Full Tower
    Cooling
    CM Hyper 212 EVO (push/pull)
    Keyboard
    Ducky DK9008 Shine II Blue LED
    Mouse
    Logitech Optical M-100
    Internet Speed
    100/100
    Browser
    Firefox (latest)
    Antivirus
    Bitdefender Internet Security (latest)
    Other Info
    Speakers: Klipsch Pro Media 2.1
  • Operating System
    Windows XP Pro 32bit w/SP3
    Computer type
    PC/Desktop
    Manufacturer/Model
    Built by Ghot®
    CPU
    AMD Athlon 64 X2 5000+ (OC'd @ 3.2Ghz)
    Motherboard
    ASUS M2N32-SLI Deluxe Wireless Edition
    Memory
    TWIN2X2048-6400C4DHX (2 x 1GB, DDR2 800)
    Graphics card(s)
    EVGA 256-P2-N758-TR GeForce 8600GT SSC
    Sound Card
    Onboard
    Monitor(s) Displays
    ViewSonic G90FB Black 19" Professional (CRT)
    Screen Resolution
    up to 2048 x 1536
    Hard Drives
    WD 36GB 10,000rpm Raptor SATA
    Seagate 80GB 7200rpm SATA
    Lite-On LTR-52246S CD/RW
    Lite-On LH-18A1P CD/DVD Burner
    PSU
    PC Power & Cooling Silencer 750 Quad EPS12V
    Case
    Generic Beige case, 80mm fans
    Cooling
    ZALMAN 9500A 92mm CPU Cooler
    Mouse
    Logitech Optical M-BT96a
    Keyboard
    Logitech Classic Keybooard 200
    Internet Speed
    100/100
    Browser
    Firefox 3.x ??
    Antivirus
    Symantec (Norton)
    Other Info
    Still assembled, still runs. Haven't turned it on for 13 years?

    http://www.xtremesystems.org/forums/showthread.php?183088-5000-B-E-on-M2N32-SLI-Dlx-Overclocked&p=2891724#post2891724
Top Bottom