Focus on window

Move the focus to a window in a specific direction.

Arguments

window — Window

The window you want to receive the focus. If Direction is specified in addition to this, it specifies the window to use for the starting position. Defaults to the current foreground window. Find windows by searching for the process name, window class and window title. All parts support wildcards or regular expressions. When setting up this command in the user interface, a nice editor is provided for the separate parts. When searching from the command line, the syntax is: \[process name]\[window class]\[window title]. All parts are optional, meaning you can use "\\\Untitled - Notepad" to find the window with that title. Wildcards are supported for each part. You can use regular expressions by surrounding the part with forwards slashes: "\\\/.* - Notepad/" will find any Notepad window, and is equivalent to "\\\* - Notepad".

region — Region

The region you want to search for the window. The window has to be maximized to this region.

monitor — Monitor

The monitor you want to search for the window. The window has to be partially covering this monitor's working area to be included.

direction — Direction

In which direction we should look for windows.