- 103
- 3
Нашел скрипт на "крутилку" и хочу перебиндить с боковой кнопки мыши на X(икс),помогите кто в ахк шарит
mouseXY(x, y)
{
DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
}
strafe(left)
{
moveCount := 1
sleepInterval = 1
relativeMove := 3000
if (left)
{
key := ""
move := relativeMove
} else
{
key := ""
move := -relativeMove
}
send {%key% down}
DllCall("Sleep", "UInt", 5)
Loop, %moveCount%
{
mouseXY(move, -(move/4))
DllCall("Sleep", "UInt", sleepInterval)
}
send {%key% up}
}
$xbutton1::
while getkeystate("xbutton1","P")
{
strafe(true)
strafe(false)
}
return
mouseXY(x, y)
{
DllCall("mouse_event",uint,1,int,x,int,y,uint,0,int,0)
}
strafe(left)
{
moveCount := 1
sleepInterval = 1
relativeMove := 3000
if (left)
{
key := ""
move := relativeMove
} else
{
key := ""
move := -relativeMove
}
send {%key% down}
DllCall("Sleep", "UInt", 5)
Loop, %moveCount%
{
mouseXY(move, -(move/4))
DllCall("Sleep", "UInt", sleepInterval)
}
send {%key% up}
}
$xbutton1::
while getkeystate("xbutton1","P")
{
strafe(true)
strafe(false)
}
return