https://autohotkey.com/board/topic/2134 ... -a-window/
I tried the code from Lexikos's reply
Code: Select all
CoordMode, Mouse, Screen
~LButton::
MouseGetPos, x, y, win
SendMessage, 0x84,, (x & 0xFFFF) | (y & 0xFFFF) << 16,, ahk_id %win%
; If the mouse is over a titlebar, unclick to prevent move.
if ErrorLevel = 2
Click Up
return
I still able to drag and move on left click window title bar of active window
os: Windows 10 x64