Этот скрипт AutoHotkey позволяет прикрепить окно блокнота к окну проводника:
#Persistent
SetTimer, attach_window, 200
Return
attach_window:
IfWinNotExist ahk_class CabinetWClass ; explorer
return ; do nothing
IfWinNotExist ahk_class Notepad
return
; otherwise:
; retrieve the position and size of the explorer window:
WinGetPos, X, Y, Width, Height, ahk_class CabinetWClass
; attach the notepad window to the right side of the explorer window:
WinMove, ahk_class Notepad,, X+Width, Y
; To make the notepad window attach itself to the bottom of the explorer window use:
; WinMove, ahk_class Notepad,, X, Y+Height
Return
https://autohotkey.com/docs/commands/SetTimer.htm
https://autohotkey.com/docs/commands/WinGetPos.htm
https://autohotkey.com/docs/commands/WinMove.htm
Используйте прилагаемую утилиту Window Spy, чтобы получить различную информацию о окнах, которые вы хотите использовать.