;Engine RPM Joy1:: Send Altd Num+ ; engine RPM UP. Joy2:: Send Alltd Num- ; engine RPM DOWN ;SCHKVAL ZOOM Joy3:: Send = ; zoom 23X Joy4:: Send ) ; zomm 7X ;Route - Off - Descent switch Joy5:: Send r ; Engage mode route Joy6:: Send r ; désengage mode route OFF Joy7:: Send {d down} ; engage mode descente SetTimer, WaitForJoy7, 30 ; Reduce the number 30 to 20 or 10 to send keys faster. Increase it to send slower. return WaitForJoy7: if not GetKeyState("Joy7") ; The button has been released. { Send {d up} ; Release the d. SetTimer, WaitForJoy7, off ; Stop monitoring the button. return } ; Since above didn't "return", the button is still being held down. Send {d down} ; Send another Spacebar keystroke. return ;Lock cible Joy8:: Send {enter} ; Verrouillage cible ; TV size Joy9:: Send {& down} ; TV size + SetTimer, WaitForJoy9, 30 ; Reduce the number 30 to 20 or 10 to send keys faster. Increase it to send slower. return WaitForJoy9: if not GetKeyState("Joy8") ; The button has been released. { Send {& up} ; Release the &. SetTimer, WaitForJoy9, off ; Stop monitoring the button. return } ; Since above didn't "return", the button is still being held down. Send {& down} ; Send another Spacebar keystroke. return Joy10:: Send {^ down} ; TV size - SetTimer, WaitForJoy10, 30 ; Reduce the number 30 to 20 or 10 to send keys faster. Increase it to send slower. return WaitForJoy10: if not GetKeyState("Joy10") ; The button has been released. { Send {^ up} ; Release the ^. SetTimer, WaitForJoy10, off ; Stop monitoring the button. return } ; Since above didn't "return", the button is still being held down. Send {^ down} ; Send another Spacebar keystroke. return