Open 4 putty terminals at the 4 corners of the screen in Windows

I have a shortcut that opens a PuTTy terminal. When I click the shortcut 4 times (or once), can the PuTTy windows align in the 4 corners of the screen and fill 4 equal areas? How?

3 Answers

Windows and PuTTy don't have this as a default option. There might be automated screen organizing software out there, but I'm not aware of any (you can ask at ).

What I would do is create an AutoHotKey script. Below is a very generic version of what you could do to launch 4 PuTTy windows and arrange them equally around the screen with a single shortcut:

SetTitleMatchMode, 2
SetTitleMatchMode Fast
Run, % "C:\Putty\Install\Folder\putty.exe"
WinWait putty
;Upper Left
WinMove, putty, , 0, 0, 960, 540
Run, % "C:\Putty\Install\Folder\putty.exe"
WinWait putty
;Upper Right
WinMove, putty, , 960, 0, 960, 540
Run, % "C:\Putty\Install\Folder\putty.exe"
WinWait putty
;Lower Left
WinMove, putty, , 0, 540, 960, 540
Run, % "C:\Putty\Install\Folder\putty.exe"
WinWait putty
;Lower Right
WinMove, putty, , 960, 540, 960, 540

This assumes that you have an HD screen (1920x1080). You can include site and login information to each window, so they will automatically start the connection you want for each one too. You'll just need to look up the PuTTy command line commands you need for the sites you are using and include them as part of the Run command for each window.

2

This answer usesSnap Assist of Windows 10andAutoHotKey.

Snap Assist can place and resize windows on half-screen or quarter-screen with the following Corner Snap hotkeys :

  • Win+Left , Win+Up : Left-upper quarter-screen
  • Win+Left , Win+Down : Left-lower quarter-screen
  • Win+Right , Win+Up : Right-upper quarter-screen
  • Win+Right , Win+Down : Right-lower quarter-screen

The following AutoHotKey script will place notepad on the left-upper quarter-screen and will resize it to the size of the quarter-screen:

SetTitleMatchMode, 2
SetTitleMatchMode Fast
Run, % "C:\Windows\System32\notepad.exe"
WinWait Notepad
Send {LWin down}{Left}{LWin up}{LWin down}{Up}{LWin up}

You should modify the script as follows :

  • The last 3 lines are to be replicated for each putty invocation
  • In the Run command, replace the path to notepad.exe by the path to putty.exe. The parameters to putty are added immediately after the program with a separating blank. If a parameter contains special characters, enclose it in double quotes.
  • In theWinWait command, the parameter should contain some identifying word or partial word on the window's title which is unique to that putty invocation
  • The keys on theSend commandshould be modified to specify the right quarter-screen. The other AutoHotKey key-codes to use are: {Down} and {Right}.

For this to work, Windows 10 Snap Assist should be enabled, which is its state by default. If it needs to be enabled, launch the Settings app from the Start Menu, click System, click Multitasking on the left, and set the Snap option. The following two options must be set to On :

image

0

You cannot do what you want just with PuTTY but you can use MTPuTTY (Multi-Tabbed PuTTY)

See what it does here:

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like