Hi all,
I'm disabled and i found this script, so i can use my mouse as the arrow keys (left and right) on the keyboard for the racing game Forza Horizen 3. But i can't get the script to work. I also can't hold hot keys down while using my mouse, so i need something like caps.
+MButton::
MouseGetPos, xpos, ypos
xright:=xpos+2
xleft:=xpos-2
yup:=ypos-2
ydown:=ypos+2
loop=1
Loop
{
MouseGetPos, xchg, ychg
if not GetKeyState("shift","P")
{
loop=0
return
}
if not loop = 0
{
if (xchg > xright)
{
sendinput {Right}
MouseMove, xpos, ypos
}
if (xchg < xleft)
{
sendinput {Left}
MouseMove, xpos, ypos
}
if (ychg < yup)
{
sendinput {up}
MouseMove, xpos, ypos
}
if (ychg > ydown)
{
sendinput {down}
MouseMove, xpos, ypos
}
}
}
Mouse to arrow keys
Re: Mouse to arrow keys
Hello, maybe try UCR.
Cheers
Cheers