Viktor1703
AutoIT Гуру
- Сообщения
- 1,535
- Репутация
- 413
Почему не получается, где ошибка или что не дописал, задача вроде не сложная?!
Код:
#Include <WinAPI.au3>
#Include <Misc.au3>
While 1
$tPoint = _WinAPI_GetMousePos()
$hWnd = _WinAPI_WindowFromPoint($tPoint)
If _IsPressed("11") Then MoveControl($hWnd)
Wend
Func MoveControl($hWnd)
$hPos = MouseGetPos()
ControlMove($hWnd, "", _WinAPI_GetClassName($hWnd) , $hPos[0], $hPos[1], 200, 200)
ConsoleWrite(_WinAPI_GetClassName($hWnd) & @CRLF)
EndFunc