April 28, 20233 yr I'm trying to figure out how I define a hotkey to select or trigger the PFD/MFD/COM on the TBM930 panel. I tried with the tutorials I have, but I don't think how, this function does not appear to define in FSUIPC7. Thanks.
April 28, 20233 yr 59 minutes ago, isnpms said: I'm trying to figure out how I define a hotkey to select or trigger the PFD/MFD/COM on the TBM930 panel. I tried with the tutorials I have, but I don't think how, this function does not appear to define in FSUIPC7. Thanks. You would have to know what variables get set when these buttons are activated. Once you know that, you can use FSUIPC to set that variable. That is assuming that the code is not buried in a Javascript file that you cannot access... which may well be the case here.. Edited April 28, 20233 yr by Bert Pieke Bert
April 30, 20233 yr Author On 4/28/2023 at 5:07 PM, Bert Pieke said: You would have to know what variables get set when these buttons are activated. Once you know that, you can use FSUIPC to set that variable. That is assuming that the code is not buried in a Javascript file that you cannot access... which may well be the case here.. I've found this, but I don't know if it is useful: through the menu WASM > Activate Hvar... There I find the identifications of these functions. For example, in this menu, when I click on "H:AS3000_TSC_Horizontal_1_Softkey_2 - 0025, the button that changes to MFD is activated and the screen changes to MFD. As with the other three buttons, each one like "...Softkey_1... " (for PFD) and "...Softkey_3..." (for NAV/COM). In FSUIPC these functions only appear, in the Key Assignments menu, when I check "Select for Preset". But even so, assigning a key to this command, it doesn't work. In Spad .next these commands do not appear.
April 30, 20233 yr 1 hour ago, Bert Pieke said: I will try to replicate.. There a couple of options here that work to activate the MFD select button for the Garmin TSC screen. 1. You can define a one line (or more if necessary) Lua script like this: ipc.activateHvar("H:AS3000_TSC_Horizontal_1_Softkey_2"), give the script a name, e.g., TBM930_MFD_SEL.lua, put the script in the same folder as your FSUIPC7.ini file, restart FSUIPC7 and then assign a key or button as usual to call the script. 2. Or, you can define a Preset that goes in your myevents.txt file that is in the same folder as your FSUIPC7.ini file (create the file if it doesn't exist). You can define the Preset like this: TBM930_MFD_SEL#(>H:AS3000_TSC_Horizontal_1_Softkey_2) where the part before (left of) the # is a name that you make up. After putting this preset in your myevents.txt file start FSUIPC7 and the preset name (TBM930_MFD_SEL) will appear in the drop down list for a key or button assignment. To make it show up in the list you have to check the "Select for Preset" check box which is somewhere in the FSUIPC7 window you are you are using to make a key or button assignment. BTW, note there are a lot of predefined TBM presets in the drop down list (look for "TBM") . These predefined presets are in another file just called event.txt. Al Edited April 30, 20233 yr by ark
April 30, 20233 yr 13 minutes ago, Bert Pieke said: Thanks, Al ! 🙂 You are most welcome. Note I originally had a typo above (now fixed) -- the myevents.txt file did not have the "s" at the end of the name. 🤕 Also note you need to have the FSUIPC7 WASM module installed, and the WASM interface active in FSUIPC7 Al Edited April 30, 20233 yr by ark
May 28, 20233 yr Author On 4/30/2023 at 12:59 PM, ark said: There a couple of options here that work to activate the MFD select button for the Garmin TSC screen. 1. You can define a one line (or more if necessary) Lua script like this: ipc.activateHvar("H:AS3000_TSC_Horizontal_1_Softkey_2"), give the script a name, e.g., TBM930_MFD_SEL.lua, put the script in the same folder as your FSUIPC7.ini file, restart FSUIPC7 and then assign a key or button as usual to call the script. 2. Or, you can define a Preset that goes in your myevents.txt file that is in the same folder as your FSUIPC7.ini file (create the file if it doesn't exist). You can define the Preset like this: TBM930_MFD_SEL#(>H:AS3000_TSC_Horizontal_1_Softkey_2) where the part before (left of) the # is a name that you make up. After putting this preset in your myevents.txt file start FSUIPC7 and the preset name (TBM930_MFD_SEL) will appear in the drop down list for a key or button assignment. To make it show up in the list you have to check the "Select for Preset" check box which is somewhere in the FSUIPC7 window you are you are using to make a key or button assignment. BTW, note there are a lot of predefined TBM presets in the drop down list (look for "TBM") . These predefined presets are in another file just called event.txt. Al Thank you very much for your help. I've tried option 2 and worked perfectly. I don't know why using the original event.txt presets it didn't worked, but creating myevents.txt doing all you suggested It worked fine.
Archived
This topic is now archived and is closed to further replies.