Force chrome.exe to start in Primary Monitor

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Timmy347
Posts: 109
Joined: 26 Aug 2017, 12:15

Force chrome.exe to start in Primary Monitor

31 Oct 2019, 14:48

I work on a multi monitor Windows 7 PC.

And I just want to FORCE Chrome to start in the PRIMARY Windows monitor.

(Currently, Chrome will start in the monitor that it was last closed in.)

Thanks!
User avatar
Capn Odin
Posts: 1352
Joined: 23 Feb 2016, 19:45
Location: Denmark
Contact:

Re: Force chrome.exe to start in Primary Monitor

31 Oct 2019, 14:51

You can move it after it starts using WinMove
Please excuse my spelling I am dyslexic.
Timmy347
Posts: 109
Joined: 26 Aug 2017, 12:15

Re: Force chrome.exe to start in Primary Monitor

31 Oct 2019, 15:23

Capn Odin wrote:
31 Oct 2019, 14:51
You can move it after it starts using WinMove
I have

RunWait C:\Users\tmanran\AppData\Local\Google\Chrome\Application\chrome.exe google.com --new-window

Can you tell me how i can use WinMove after this line of code to move it?
gregster
Posts: 9002
Joined: 30 Sep 2013, 06:48

Re: Force chrome.exe to start in Primary Monitor

31 Oct 2019, 16:53

Timmy347 wrote:
31 Oct 2019, 15:23
Capn Odin wrote:
31 Oct 2019, 14:51
You can move it after it starts using WinMove
I have

RunWait C:\Users\tmanran\AppData\Local\Google\Chrome\Application\chrome.exe google.com --new-window

Can you tell me how i can use WinMove after this line of code to move it?
Perhaps this helps: https://www.autohotkey.com/boards/viewtopic.php?f=76&t=69256&p=298510#p298510 . But you should look at the WinMove docs as well to understand the parameters... for the first window of a Chrome session, you should be able to position it just with Chrome command line parameters, though. To find the right coords, Window Spy should be helpful.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: scriptor2016 and 291 guests