possible to move a named Window from one screen to the other screen?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
LoveGames
Posts: 83
Joined: 03 Jan 2021, 10:55

possible to move a named Window from one screen to the other screen?

Post by LoveGames » 30 Jul 2021, 11:58

I have two screens. One is small, and one is big.

Sometimes I put certain window on my small side screen, but sometimes I want that window on my bigger ultrawide screen.

Is there a way I could switch the window with a toggle from one screen to the other and back? maximized.

thx
User avatar
boiler
Posts: 16960
Joined: 21 Dec 2014, 02:44

Re: possible to move a named Window from one screen to the other screen?

Post by boiler » 30 Jul 2021, 12:08

Yes, you can set up a hotkey that would do the following to the active window:
  1. Determine which screen it’s on using WinGetPos
  2. Move to the opposite screen using WinMove
  3. Maximize on that screen using WinMaximize
Post Reply

Return to “Ask for Help (v1)”