Hola gentecilla, a ver tengo el siguiente problema:
He hecho 4 scripts, identicos salvo que cada uno es una tecla del joystick.
Por separado, los 4 puestos, van de lujo
Pero quiero ponerlos todos en uno, por cuestiones de pijoteria y poder cerrar y abrir todo de golpe pero soy incapaz de conseguirlo.
Alguna idea¿?
Os dejo los scripts:
1
#SingleInstance force
DownStrafeMode = 0
loop
{
GetKeyState, DownStrafeKey, 2Joy13
; Down Strafe
if (DownStrafeKey = "D" && DownStrafeMode = 0) ; Check for "Up" engaged - the # is entirely dependent on your personal deadzone preference.
{
Send {f9}
DownStrafeMode = 1
}
if (DownStrafeKey = "U" && DownStrafeMode = 1)
{
Send {f5}
DownStrafeMode = 0
}
}
2
#SingleInstance force
LStrafeMode = 0
loop
{
GetKeyState, LStrafeKey, 2Joy14
; Left Strafe
if (LStrafeKey = "D" && LStrafeMode = 0) ; Check for "Up" engaged - the # is entirely dependent on your personal deadzone preference.
{
Send {f6}
LStrafeMode = 1
}
if (LStrafeKey = "U" && LStrafeMode = 1)
{
Send {f5}
LStrafeMode = 0
}
}
3
#SingleInstance force
RStrafeMode = 0
loop
{
GetKeyState, RStrafeKey, 2Joy12
; Right Strafe
if (RStrafeKey = "D" && RStrafeMode = 0) ; Check for "Up" engaged - the # is entirely dependent on your personal deadzone preference.
{
Send {f7}
RStrafeMode = 1
}
if (RStrafeKey = "U" && RStrafeMode = 1)
{
Send {f5}
RStrafeMode = 0
}
}
4
#SingleInstance force
UStrafeMode = 0
loop
{
GetKeyState, UStrafeKey, 2Joy11
; Up Strafe
if (UStrafeKey = "D" && UStrafeMode = 0) ; Check for "Up" engaged - the # is entirely dependent on your personal deadzone preference.
{
Send {f8}
UStrafeMode = 1
}
if (UStrafeKey = "U" && UStrafeMode = 1)
{
Send {f5}
UStrafeMode = 0
}
}