Function Reference


_WinAPI_GetCapture

Gets the handle to the window (if any) that has captured the mouse

#include <WinAPISys.au3>
_WinAPI_GetCapture ( )

Return Value

Success: handle to the window that has the captured the mouse
Failure: Null handle if none found

Related

_WinAPI_SetCapture

See Also

Search GetCapture in MSDN Library.

Example

#include <WinAPISys.au3>

Local $Hwnd = _WinAPI_GetCapture()
MsgBox(0, "Mouse capture Handle", $Hwnd)