so far the only working script i found was from JonA and it has some problems.
Code: Select all
#Persistent
SetTimer, WatchAxis, 5
return
WatchAxis:
GetKeyState, JoyX, JoyX
GetKeyState, JoyY, JoyY
If JoyX < 30
{
Send {Left down}
SetTimer, WaitForJoyX, 30
return
WaitForJoyX:
if JoyX > 29
{
Send {Left up}
SetTimer, WaitForJoyX, off
return
}
Send {Left down}
return
}
else If JoyX > 70
{
Send {Right down}
SetTimer, WaitForJoyX2, 30
return
WaitForJoyX2:
if JoyX < 71
{
Send {Right up}
SetTimer, WaitForJoyX2, off
return
}
Send {Right down}
return
}
If JoyY < 30
{
Send {Up down}
SetTimer, WaitForJoyY, 30
return
WaitForJoyY:
if JoyY > 29
{
Send {Up up}
SetTimer, WaitForJoyY, off
return
}
Send {Up down}
return
}
If JoyY > 70
{
Send {Down down}
SetTimer, WaitForJoyY2, 30
return
WaitForJoyY2:
if JoyY < 71
{
Send {Down up}
SetTimer, WaitForJoyY2, off
return
}
Send {Down down}
return
}
return
so if any of you have a working script with diagonals (or an idea how to fix this one) please help me out.