How to move / resize the Chrome window Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Julius
Posts: 67
Joined: 15 Sep 2015, 07:41
Contact:

How to move / resize the Chrome window

30 Aug 2019, 15:28

Hi,
Ihave been struggling for months now trying to move/resize the chrome window from full size to something smaller - without any success. Can anyone give me some hints how to accomplish this?

Regards and Thank you in advance
Julius
User avatar
boiler
Posts: 17397
Joined: 21 Dec 2014, 02:44

Re: How to move / resize the Chrome window  Topic is solved

30 Aug 2019, 18:32

If it's maximized, you need to restore it to normal first:

Code: Select all

WinGet, WinStatus, MinMax, ahk_exe chrome.exe
if (WinStatus != 0)
	WinRestore, ahk_exe chrome.exe
WinMove, ahk_exe chrome.exe,, 50, 50, 800, 600
Julius
Posts: 67
Joined: 15 Sep 2015, 07:41
Contact:

Re: How to move / resize the Chrome window

31 Aug 2019, 12:51

boiler wrote:
30 Aug 2019, 18:32
If it's maximized, you need to restore it to normal first:

Code: Select all

WinGet, WinStatus, MinMax, ahk_exe chrome.exe
if (WinStatus != 0)
	WinRestore, ahk_exe chrome.exe
WinMove, ahk_exe chrome.exe,, 50, 50, 800, 600
Wow, it works! You saved not only my day, but also some postponed projects!
Thanks a lot! :D

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Mateusz53, MrHue, mstrauss2021, Rohwedder and 316 guests