使用:非最大化下,按住ctrl alt鼠标左键拖动
如下:
*<^<!LButton::
{
CoordMode "Mouse", "Screen"
MouseGetPos(&px, &py)
WinGetPos(&wx, &wy, , , 'A')
dx := wx - px, dy := wy - py
SetWinDelay -1
While GetKeyState("LButton", "P")
{
MouseGetPos(&nx, &ny)
WinMove(nx + dx, ny + dy, , , "A")
}
}
标签:窗口,ctrl,AHK2,轻松,alt,拖拽
From: https://www.cnblogs.com/refiz/p/17538615.html