ES: Necesito su ayuda, como combino estos 2 scripts en 1 script y que ambos funcionen sin ningun conflicto entre ellos 2.
Script 1:
Code: Select all
#Persistent
SetTimer, WatchPOV, 5
return
WatchPOV:
POV := GetKeyState("JoyPOV")
KeyToHoldDownPrev := KeyToHoldDown
if (POV < 0)
KeyToHoldDown := ""
else if (POV > 31500)
KeyToHoldDown := "Up"
else if POV between 0 and 4500
KeyToHoldDown := "Up"
else if POV between 4501 and 13500
KeyToHoldDown := "Right"
else if POV between 13501 and 22500
KeyToHoldDown := "Down"
else
KeyToHoldDown := "Left"
if (KeyToHoldDown = KeyToHoldDownPrev)
return
if KeyToHoldDownPrev
Send, {%KeyToHoldDownPrev% up}
if KeyToHoldDown
Send, {%KeyToHoldDown% down}
return
Code: Select all
#Persistent
SetTimer, WatchAxis, 5
return
WatchAxis:
JoyX := GetKeyState("JoyX")
JoyY := GetKeyState("JoyY")
KeyToHoldDownPrev := KeyToHoldDown
if (JoyX > 70)
KeyToHoldDown := "Right"
else if (JoyX < 30)
KeyToHoldDown := "Left"
else if (JoyY > 70)
KeyToHoldDown := "Down"
else if (JoyY < 30)
KeyToHoldDown := "Up"
else
KeyToHoldDown := ""
if (KeyToHoldDown = KeyToHoldDownPrev)
return
SetKeyDelay -1
if KeyToHoldDownPrev
Send, {%KeyToHoldDownPrev% up}
if KeyToHoldDown
Send, {%KeyToHoldDown% down}
return
ES: No se como combinarlos, probé de todo pero solo conseguí que funcionara 1 de los 2. Nunca conseguí que ambos funcionaran. muchas gracias.