Can't Select and Maximize Window

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
yabab33299
Posts: 124
Joined: 06 May 2020, 17:16

Can't Select and Maximize Window

Post by yabab33299 » 16 Jan 2022, 20:36

I want to open a website, then maximize the chrome window. So far, the script opens the site, but it does not maximize the chrome window. What am I missing ?

Code: Select all

Run, chrome.exe https://www.msn.com/
WinWait, chrome.exe MSN | Outlook, Office, Skype, Bing, Breaking News, and Latest Videos
WinMaximize, chrome.exe MSN | Outlook, Office, Skype, Bing, Breaking News, and Latest Videos

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

Re: Can't Select and Maximize Window

Post by mikeyww » 16 Jan 2022, 20:38

Code: Select all

F3::
Run, chrome.exe https://www.msn.com/
WinWait, ahk_exe chrome.exe,, 5
If !ErrorLevel
 WinMaximize
Return
Explained: WinWaitWinTitle

Post Reply

Return to “Ask for Help (v1)”