Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi All,

 

I'm sure the topic has been asked before but the answers I get are either open-ended or incomplete. I have SPAD controlling my Saitek Multi-panel and FSUIPC recognizes the virtual joystick. I want to assign two functions for the AP buttons (HDG,Alt, Etc.) and to do that I'm planning to use a global shift button in my yoke. I have had this work before but never with a mouse macro. The thing is the aircraft involved (QW BAE146) seems to have no LVARs for the autopilot buttons. They do work with mouse macros though, so I want is, for example, Unshifted: VOR/LOC (mouse macro) on NAV button and  Shifted: LNAV (mouse macro) on NAV Button as well.

 

The syntax of mouse macros don't seem to support this. But I still tried. Is there any workaround? Or is there a better way?

 

So I came up with this: 

 

7=P66,0,CM1:9,0
8=P66,2,CM1:5,0
9=P66,4,CM1:10,0
10=P66,6,CM1:11,0
11=P66,8,CM1:8,0
12=P66,10,CM1:7,0
13=P66,12,CM1:6,0
14=P66,14,C66288,0
15=CP(+2,0)66,4,CM1:4,0
16=CP(+2,0)66,10,CM1:3,0
17=CP(+2,0)66,8,CM1:13,0
 

The syntax of mouse macros don't seem to support this. But I still tried. Is there any workaround? Or is there a better way?

 

 

Posted

The syntax of mouse macros don't seem to support this. But I still tried. Is there any workaround? Or is there a better way?

 

The conditional part of the entry is the same no matter what the "action" in the tail end is. Why do you think it doesn't support it? There's no difference in any part before the "C" or "K" indicating "Control" or "Keypress"..

 

I see one problem in your assignments, though. Look, when I pair things up for the same button it shjould be glaringly obvious what's wrong:

 

9=P66,4,CM1:10,0
15=CP(+2,0)66,4,CM1:4,0
 
11=P66,8,CM1:8,0
17=CP(+2,0)66,8,CM1:13,0
 
12=P66,10,CM1:7,0
16=CP(+2,0)66,10,CM1:3,0
 

What do you think happens when you press buttons 66,4 or 66,8 or 66,10, no matter whether you "shift" (2,0) is pressed or not? The first of each pair is set to ALWAYS operate. If the shift is pressed too, the so with the other of the pair. 

 

If that is not what you want you should have the condition "shift button not pressed" on the currenty unconditional one of each pair, i.e.

 

9=CP(-2,0)66,4,CM1:10,0
15=CP(+2,0)66,4,CM1:4,0
 
11=CP(-2,0)66,8,CM1:8,0
17=CP(+2,0)66,8,CM1:13,0
 
12=CP(-2,0)66,10,CM1:7,0
16=CP(+2,0)66,10,CM1:3,0
 
Pete

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.