Launching files maximized from startup

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
nagrom_emanresu
Posts: 4
Joined: 24 Feb 2022, 19:02

Launching files maximized from startup

Post by nagrom_emanresu » 15 May 2022, 19:06

I would like to launch file explorer maximized for startup, I have tried placing the following code

Code: Select all

Run, Explorer, , max
in the startup folder, and it launches Win Explorer but it won't launch it maximized, any help with this would be greatly appreciated

User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Launching files maximized from startup

Post by mikeyww » 15 May 2022, 19:21

Code: Select all

winTitle = ahk_class CabinetWClass
WinMinimize, %winTitle%
Run, explorer
WinWaitActive, %winTitle%,, 5
If !ErrorLevel
 WinMaximize

Post Reply

Return to “Ask for Help (v1)”