#include "alt_winmode.cms"
$hwnd1 = 200832
A_LCLICK (24,194, $hwnd1)
halt
#include "alt_winmode.cms"
$hwnd1 = 200832
A_LDOWN(24,194, $hwnd1)
wait 10
A_LUP(24,194, $hwnd1)
halt
третий вариант
$_hwnd = 200832
$x = 24
$y = 194
POSTMESSAGE($_hwnd,0x0201,0x0001,$x+($y*65536))//LDOWN
wait 10
POSTMESSAGE($_hwnd,0x0202,0x0001,$x+($y*65536))//LUP
halt
вот скрин где красной стрелкой показано где кликает скриптPOSTMESSAGE($_hwnd, 0x0201, 0x0001, $x+($y*65536)) //LDOWN
POSTMESSAGE($_hwnd, 0x0202, 0x0001, $x+($y*65536)) //LUP
Meaning | |
MK_CONTROL 0x0008 | The CTRL key is down |
MK_LBUTTON 0x0001 | The left mouse button is down. |
MK_MBUTTON 0x0010 | The middle mouse button is down. |
MK_RBUTTON 0x0002 | The right mouse button is down. |
MK_SHIFT 0x0004 | The SHIFT key is down. |
MK_XBUTTON1 0x0020 | The first X button is down. |
MK_XBUTTON2 0x0040 | The second X button is down. |
POSTMESSAGE($_hwnd, 0x0201, 0, $x+($y*65536)) //LDOWN
POSTMESSAGE($_hwnd, 0x0202, 0, $x+($y*65536)) //LUP
Posted when the user releases the left mouse button while the cursor is in the client area of a window. If the mouse is not captured, the message is posted to the window beneath the cursor. Otherwise, the message is posted to the window that has captured the mouse.Вроде бы у нас мышь не захвачена, тогда совсем не должно работать. Или описание кривое.
Отправляется, когда пользователь отпускает левую кнопку мыши, пока курсор находится в клиентской области окна. Если мышь не захвачена, сообщение отправляется в окно под курсором. В противном случае сообщение отправляется в окно, которое захватило мышь.
Нужно пробовать кто ноксом пользуется.
...
$_hwnd = 200832
$x = 24
$y = 194
POSTMESSAGE($_hwnd,0x0201,0x0001,$x+($y*65536))//LDOWN
wait 10
POSTMESSAGE($_hwnd,0x0202,0x0000,$x+($y*65536))//LUP