Post by PSVl » 03 Jun 2018, 07:20
Наверняка уже неактуально, но накидал тут немного. Требует доработки.
Code: Select all
~MButton::
loop
{
MouseGetPos, X1, Y1,
Sleep, 50
ControlGetFocus, Control, A
GetKeyState, state, MButton, P
MouseGetPos, X2, Y2
if (X2 < X1)
{
SendMessage, 0x114, 0, 0, %Control%, A
}
else if (X2 > X1)
{
SendMessage, 0x114, 1, 0, %Control%, A
}
else if (Y2 < Y1)
{
SendMessage, 0x115, 0, 0, %Control%, A
}
else if (Y2 > Y1)
{
SendMessage, 0x115, 1, 0, %Control%, A
}
if state = U
break
}
return
Наверняка уже неактуально, но накидал тут немного. Требует доработки.
[code]
~MButton::
loop
{
MouseGetPos, X1, Y1,
Sleep, 50
ControlGetFocus, Control, A
GetKeyState, state, MButton, P
MouseGetPos, X2, Y2
if (X2 < X1)
{
SendMessage, 0x114, 0, 0, %Control%, A
}
else if (X2 > X1)
{
SendMessage, 0x114, 1, 0, %Control%, A
}
else if (Y2 < Y1)
{
SendMessage, 0x115, 0, 0, %Control%, A
}
else if (Y2 > Y1)
{
SendMessage, 0x115, 1, 0, %Control%, A
}
if state = U
break
}
return
[/code]