Jump to content
The simFlight Network Forums
DavyC100

Buttons using macros - What am I missing?

Recommended Posts

Spent this afternoon trying to get this to work.

 

It is using the mode buttons on a saitek yoke, FSUIPC is seeing them as buttons 8, 9 & 10 on joystick 2.  Now I want to assign keys to adjust autopilot altitude, I have recorded the macro and can get it to work on a single button but cannot get the compound button to work, I know I am missing something silly.

 

27=CR2,(+P,9)P,15,CM14:2,0 -{Macro QW788: DecreaseApAlt}- 

I want to use button 9 - mode 2 with button 15 using a macro which is number 14 in the macro file.  I do not understand the two numbers after CM14:  but the last always seems to be 0 - so I guess that is because it is normal.  The first number I have varied but thought it was sequential.  Any help or pointers appreciated.

 

Using P3d V4.5

QW 787

Registered version FSUIPC Ver 5 - updated.

 

This is a me issue as everything else is working I am just missing something in the line above.

Thanks.

Davy C

Edited by DavyC100
Add more details

Share this post


Link to post
Share on other sites

Did You check the advanced user guide section Compound Button Conditions?

The format is
     n=CR(+j2,b2)j,b, ...

So, first program your button without the mode switch.

Then, add a 'C' after the '=', then add your condition after the "repeat" code 'R' (with no comma!), so something like

    27=CR(+P,9)P,15,CM14:2,0 -{Macro QW788: DecreaseApAlt}- 

(assuming P is the letter assigned to your joystick device)

38 minutes ago, DavyC100 said:

I do not understand the two numbers after CM14:  but the last always seems to be 0 - so I guess that is because it is normal.

Again, check the Advanced 'user guide, section Macro Control References:

Quote

Macro controls are represented internally in the same sort of way as FSUIPC offsets controls, by using high-value bits in the control number. However, the representation in Macro files and in the INI file is as follows:

Mm:n
where m if the Macro File number (see below) and n is the control number from the file, as described above.

The last number is the parameter to the macro.

John

Share this post


Link to post
Share on other sites

Got it - mixed myself up with the joystick, it is actually 2 NOT P and too many ,,,,'s - all working and as I said it was just me having a senior moment.

Thanks for your help I missed the Mm:n bit in the the guide.

Davy C

Share this post


Link to post
Share on other sites

Ok, glad it's now working.

If you are not using the "JoyLetters" facility, it's a good idea to activate it as this will prevent possible problems later (e.g. when unplugging and replugging your devices into a different USB socket/hub). Just change the AutoAssignLetters ini parameter (in the [JoyNames] section) from No to Yes. See the User guide section on this if you need further details.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • 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.