Jump to content

Recommended Posts

Posted

Hello everybody,

I use the software AutoHotKey to programming the controls of my joystick. (http://www.autohotkey.com/)

I would like to attribute the  combinations of keys : (Shift, Control or Alt) + (Key). Is it possible ?

Example: I want to assign the command "Switch pitch propellers control mode: manual / auto" (LShift + P) => button n°2 of my joystick.

; Switch propellers pitch (manual/auto)
1Joy2::
Send {LShift down}P{LShift up}
return

It works very well in NotePad.

But in BOS, at the touch of a button 2, the game will be paused.
It seems that the key "Shift" does not work.

How can I get around this?

Sorry for my english.
Thank you in advance.

Posted (edited)

With others keymaper (TARGET...) is need use pauses between the modifier and the key.

Edited by Sokol1
Posted

Thank you very much Sokol1.

This works perfectly.

Here is the code AutoHotKey :

; ***** Switch propellers pitch (manual/auto) *****
1Joy2::
BlockInput On
Send {RShift down}
Sleep 33
Send {p down}
Sleep 33
Send {p up}{RShift up}
BlockInput Off
Return

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...