Multi Monitor Setup w/ Autohotkey

Multi Monitor Setup w/ Autohotkey

Downloading Autohotkey/Script

You COULD use my precompiled Script[drive.google.com]

If you like running executables from strangers on the interwebz. i don't ¯\_(ツ)_/¯

You probably prefer installing Autohotkey[www.autohotkey.com] and running the code on your own.

EITHER WAY - make sure to run the code as administrator or it wont work.

Code

Skip to "Running it" if you are running the precompiled script

Save this as "ItTakesTwo.ahk"#ifwinactive ahk_exe ItTakesTwo.exe ;WinMove, WinTitle, WinText, X, Y , Width, Height, ExcludeTitle, ExcludeText F11::WinMove, A,, 0, 0 , 3840, 1080 F10::WinMove, A,, 0, 0 , 1920, 1080 F6::WinMove, A,, 0, 0, A_ScreenWidth, A_ScreenHeight F7::WinMove, A,, 0, 0, (A_ScreenWidth*2), A_ScreenHeight

the F6 / F7 hotkeys should work for everyone having two monitors with the same resolution.

F10 / F11 serve as a demonstration for editing the code.

Editing Code

This shouldnt be needed. You can probably just skip to "Running it"

The syntax is actually not that complicated: WinMove, WinTitle, WinText, X, Y , Width, Height

All you need to know, is your screens native resolution, Width and Height, and adapt accordingly.

e.g.:

1 Full HD monitor is 1920 pixels wide and 1080 pixels high.

2 Full HD monitors are 3840 pixels wide and 1080 pixels high.

For stretching the current window over both monitors with F11, this is the code:

F11:: WinMove, A, , 0, 0, 3840, 1080

For going back to only using the first monitor, this is the code:

F10:: WinMove, A, , 0, 0, 1920, 1080

Here[www.autohotkey.com] you can read more about the winmove command.

Running It


Multi Monitor Setup w/ Autohotkey image 23
Multi Monitor Setup w/ Autohotkey image 24

Run the script as administrator and tab into game.

 

 

Use F7 for playing on two monitors:

Use F6 for playing on one monitor again:

 

Not Working?


Multi Monitor Setup w/ Autohotkey image 32

Make sure you are running the script

as administrator!

Ingame set Options ➡ Display ➡ Window Mode to "Borderless Windowed", which is the default setting.

If you are still having trouble, feel free to ask. Otherwise; have fun with this wonderful game!

Source: https://steamcommunity.com/sharedfiles/filedetails/?id=2772449441					

More It Takes Two guilds