

Open Notepad on right-most ( 3rd ) Screen.v_ThisHeight := a_MyArray - a_MyArray.Get full screen coordinates for the right-most ( 3rd ) monitor.WinMove, ahk_id %v_LastID%, %v_XCoord%, %v_YCoord%, %v_ThisWidth%, %v_ThisHeight% So the above code tries to determine the leftmost monitor and rightmost with the last being in the centre.įirst of all here's the code to open a windows application on a non-default monitor:Ĭopy raw styler Get full screen coordinates for the right-most (3rd) monitor Now there is an issue in that Monitor 1,2, and 3 might not be in the order placed on the desk and not in the order of left to right. SysGet , v_Monitor%A_Index% , Monitor , %A_Index%.get all monitors (excl. hidden/virtual ).

MsgBox 1: %v_Leftest% 2: %v_Central% 3: %v_Rightest% SysGet, v_Monitor%A_Index%, Monitor, %A_Index% I'm going to cover the basic code to: 1) get all monitors, 2) open an app on a specified monitor, 3) switch to another desktop.Ĭount Monitors and Check it can see left-most, central, and right-most monitors:

The following example is assuming you have 3 monitors and 3 desktops. So I thought I'd jot down some notes here on how I've achieved this across multiple monitors. In addition, there are some developments on AutoHotkey forums where people are having difficulties opening an app on their second monitor. more than 1 monitor), then MS Windows will almost remember which apps were open on which screen but always on Desktop 1. If you have a multiple monitor setup (ie. MS Windows 10 has made a major step but when you close down your PC and log back in, all the applications are grouped into the one desktop. The same can be done to the desktop versions with open applications instead of just their icons. So if you have a Mac or Linux system, you will know of a feature where you can have another virtual desktop on your device.įor those that don't know it, the feature is similar to mobile phones where you swipe left/right to reveal another screen of app icons. Yay for Microsoft Windows 10 in joining the rest of the Operating Systems in implementing multiple desktops.
