Search the Community
Showing results for tags 'mouse macro'.
Found 1 result
Hi, here's a short introduction to how to create Mouse Macros in FSUIPC for use with LINDA. What is it: A Mouse Macro is kind of like a recorded mouse click, which you then later can replay to get the same effect. It normally works very well, but there are a few limitations: Not everything works with mouse macros. There is no simple rule for this, you will just have to try. The recorded marcros probably only works for the version of the plane they were recorded in. If a new version of the plane is released, then the macros need to be recorded again for that version. You can use a different livery without problems, but you will have to check to see whether different variants works with the same set of macros. You can only record macros with a full version of FSUIPC, so you will have to buy it. That should be a no-brainer. FSUIPC is the most important addon to get for FSX in my opinion. I have only tried to record macros in a virtual cockpit and in windowed mode. It may work in the other modes as well, I just haven't tried it. How to create a set of macros: Load the plane into FSX. Be sure that the buttons and dials you want to use are visible. Open FSUIPC from the addon dialog. In FSUIPC go to the "Buttons+Switches" page and click "Create Mouse Macro". Enter a file name in the dialog that shows up. Please use a name that is descriptive... Like "mjc8q400" which was the name used by Capt. Pero's macros for the "Majestic Dash 8 Q400". The file will be placed in "...\Microsoft Flight Simulator X\Modules". The same place where Linda was installed. After pressing Ok, you are returned FSUIPC. Press Ok here too; this returns you to the cockpit view. Now the magic starts. Right click, left click or scroll mouse wheel on the button/dial you want to record. Do exactly as you would when flying. When you do this a green or red window is shown (the colour does not mean anything, it just switches between red and green for each time you record a macro). This indicates that FSUIPC noticed you clicked on something. Optional: You can now press TAB to try the recorded macro. This will perform the action again. If satisfied, then enter a name for the macro (up to 16 characters) and press return. If not satisfied, press ESC. If you want to record more macros, then repeat from step 6 again. If you are done recording macros for now, then open FSUIPC in the Add-ons menu and go back to the "Button + Switches" page. Click "End Macro Making", then close the FSUIPC dialog and you are done recording the macros. That is all there is to it... Easy B) How to use a macro from Linda: To use the macro from Linda, you should create a function that "fires" the macro. I am not going to explain in detail how this is done. You can check out the Majestic Dash 8 Q400 for an example. See the contents of the actions.lua file in "....\Microsoft Flight Simulator X\Modules\linda\aircrafts\Majestic Dash 8 Q-400". Here is an example of a function firing a macro from that file: function AP_HDG_press () ipc.macro("mjc8q400: AP_HDG_press") end In the line above "mjc8q400" is the name of the macro file (leaving out .mcro), and AP_HDG_press is the name of the macro. That is, the name you typed in while recording the macro. Please, please: Try to decide on a systematic way to name the macros. It should be possible to figure out what each macro does just from this name. This makes it much easier to understand what happens when examining/writing the Linda file. It also makes it possible for someone else (or yourself for that matter) to re-record the macros later if a new version of the plane is released. The names of the Majestic macros is a good example. I was able to redo them with the new Dash 8 version based only on the name of the macros. For instance. What do you think the macro "AP_HDG_press" does? Well, it presses the HDG button on the Autopilot (AP). If Capt Pero had called that macro for "Coolname1" then I could not have re-recorded it easily Editing macros: You can edit the macro file with notepad; do not use Word or another word processing program. When you open the macro file, you can delete macros you don't want (maybe you recorded some by mistake), and you can rename macros if you think you have a better name for a macro or made a spelling error. Be sure not to modify the stuff after the second equal sign. That is FSUIPC's description of what you did when you recorded the macro. I always renumber the macros if I delete some. I don't know if this is necessary. Recording more macros: If you go into FSUIPC and start recording macros again with the same file name, then the macros are appended to the file if it already exists. Macro files can be used if they are in the modules folder. If you create some macro files just for testing, then delete them after use. Otherwise you use memory for a lot of macros that never are used. If you need more help, then ask, or read the FSUIPC manuals. Helge