this sounds incredible easy but it can't get it to work

Code: Select all
Protected.i hWnd
Protected pt.POINT
GetCursorPos_(@pt)
hWnd = WindowFromPoint_(PeekQ(@pt))
Debug SendMessage_(hWnd, #WM_LBUTTONDBLCLK, #MK_LBUTTON, pt\x + pt\y << 16)
But it seems it only executes a single click (it's a file manager and I'm trying to send the double click when e.g. hovering over a folder to enter) because it just goes into rename mode instead of entering the folder.
Am I doing it wrong?