If you did not read the previous lessons, please do. This post is about how to consolidate our earlier made macros into one single macro for a specific aircraft.
When you observe the lines in the macro file with a text editor, this is what you could see and pay attention to the line” Module=”
As long as there are other macros of which the module name is the same, you can combine the statements hereafter into one macro. Only change the numeric value at the beginning of the line. This is how it looks in LINDA after you assigned the macro:
[Macros] Module=”Bendix_King_Radio.DLL” 1=AP_ON=RX2900*Xa1cc 2=AP_HDG=RX2940*Xa1cc 3=AP_NAV=RX2980*Xa1cc 4=AP_ALT=RX2a40*Xa1cc 5=AP_APR=RX29c0*Xa1cc 6=AP_REV=RX2a00*Xa1cc 7=UP=RX2ac0*Xa1cc 8=DOWN=RX2a80*Xa1cc 9=GPS=RX2230*Xa1cc 10=APR=RX29c0*Xa1cc
When it runs…it runs and you can delete the previous created single line macros.
For the purpose of this lesson we use our Logitech Joystick and will create a macro to activate the Autopilot. First check in the Standard.XML if the joystick events are gone…else delete them and close and save the file. (If you are lost here already…please read previous lessons).
- Next Start FSX, with a C172, in Cockpit view (or press shift+2)
- Open Add-ons and select FSUIPC
- Activate the tab Buttons + Switches and down below
- Press the button Create Mouse Macro
- You get a sub screen that asks you to fill a name: AP_ON;
- Close with OK and close FSUIPC Options and Settings with OK.
- Before you do, observe that the earlier named buttun Create Mouse Macro has changed into:….we get back later.
- You must be in cockpit view and now do exactly what you should do to activate the AP.
- Press with your mouse the button AP in the Autopilot. The very moment you press this button, in the left upper corner of your FSX a green bar appears with the following text –>
- Press the TAB on your keyboard to verify that the function is working correctly. The AP light will swap.
- Then, if OK, enter the name that you previous choose for this macro: AP_ON and close with ENTER
- Next step: Get into FSUIPC Buttons + Switches and
- Press the button End Macro Making.
Thats all there is.
Check, double check…
- Open your ../Modules folder and find the file called AP_ON.MCRO
- Right mouse open this file with and editor…this is what you have composed:
3. Close the file.
4. Now activate LINDA that has recognized the joystick in the same time. Press FSX-sync
5. Press button 7 on the joystick and press empty to select in the column On Press:: Set FSUIPC Macro
6. Select AP_ON in the field area Macro files found and then in Available macros: AP_ON
7. Now look in your cockpit view what is happening when pressing key 7 on your joystick…
8. Now create a macro for activating the HDG button in the AP in the same way.
This is what you could have created: the “M” before a statement refers to a macro.
These 2 statements are not present in the *FSX Default.
Problems? Give me buzz.
To read previous lessons click here: lesson_2 lesson_1
Lesson 4 consolidating macro’s start here.