tiburon
05-17-2011, 12:13 PM
Hi,
I wrote a very simple (not for me :-?) script to toggle the VOR1 button on the audio panel by means of a pushbutton connected to a USB_KEYS card by shamelessly copying a script from Nico's site and adjusting it to my own needs.
var 1 name KEY Link USB_KEYS device 5
{
L0 = &KEY
IF L0 = 4
{
&FO_JoyStick64 = CHANGEBIT 0 v1 // toggle bit 0 of joystick 64
}
}
Var 2 name FO_JoyStick64 Link FSUIPC_OUT Offset $3340 Length 4
I checked in FSUIPS buttons and switches and Strange and Wonderful thing, it worked, but only once !
I could not get it to send this key again.
What have I done wrong ?
thanks
Martin
I wrote a very simple (not for me :-?) script to toggle the VOR1 button on the audio panel by means of a pushbutton connected to a USB_KEYS card by shamelessly copying a script from Nico's site and adjusting it to my own needs.
var 1 name KEY Link USB_KEYS device 5
{
L0 = &KEY
IF L0 = 4
{
&FO_JoyStick64 = CHANGEBIT 0 v1 // toggle bit 0 of joystick 64
}
}
Var 2 name FO_JoyStick64 Link FSUIPC_OUT Offset $3340 Length 4
I checked in FSUIPS buttons and switches and Strange and Wonderful thing, it worked, but only once !
I could not get it to send this key again.
What have I done wrong ?
thanks
Martin