lock a window - disable drag and move on title bar

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
takayo97
Posts: 63
Joined: 09 Jun 2018, 16:30

lock a window - disable drag and move on title bar

21 Aug 2018, 00:03

I read a post from the archive forum about locking a window
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
The above code is not working.
I still able to drag and move on left click window title bar of active window

os: Windows 10 x64

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: jeves, Thorlian and 157 guests