Jim Harnes Posted December 18, 2009 Report Posted December 18, 2009 As the developer does not provide the information, I've used FSUIPC's logging facility to capture events which occur when I click on areas of the 2D panel I want to assign to my yoke. That was successful for everything except the EPR button on the 2D panel. Here is the log: ********* FSUIPC, Version 3.952 by Pete Dowson ********* Running on Windows Version 5.1 Build 2600 Service Pack 3 Verifying Certificate for "C:\Program Files\Microsoft Games\Flight Simulator 9\MODULES\FSUIPC.dll" now ... SUCCESS! Signature verifies okay! Running inside FS2004 (FS9.1 CONTROLS.DLL, FS9.1 WEATHER.DLL) User Name="James J Harnes Jr" User Addr=(removed) FSUIPC Key is provided WIDEFS not user registered, or expired Module base=61000000 ClassOptions: UIPCMAIN=FF7F, FS98MAIN=FF7F, FS2KMAIN=FF5E WeatherOptions(Orig)=68003709[68003709] InitDelay: 0 seconds WeatherReadInterval=4 LogOptions=00000001 DebugStatus=15 39328 System time = 18/12/2009 13:49:51 39344 C:\Program Files\Microsoft Games\Flight Simulator 9\ 39344 System time = 18/12/2009 13:49:51, FS2004 time = 12:00:00 (00:00Z) 55406 FLIGHTS\OTHER\FLTSIM.flt 55484 AIRCRAFT\c172\Cessna172SP.air 55766 Aircraft="Cessna Skyhawk 172SP" 66312 Advanced Weather Interface Enabled 104125 AIRCRAFT\QualityWings 752 Passenger\QWSim Boeing 757-200WL Rolls-Royce RB211-535E4B.air 104156 Aircraft="QWSim Boeing 757-200WL American Airlines WV" 347562 WeatherOptions set, now 68003709 (timer=0) 376734 HotKey entry at 3210, VK=255, Shifts=255, Flags=0, Result=0 385297 KEYDOWN: VK=116, Waiting=0, Repeat=N, Shifts=0 385297 .. This key is programmed in FSUIPC 'Keys' options 385531 KEYUP: VK=116, Waiting=0 387047 *** EVENT: Cntrl= 65860 (0x00010144), Param= 0 (0x00000000) AUTO_THROTTLE_ARM 387109 HotKey entry at 3210, VK=255, Shifts=255, Flags=0, Result=0 391328 *** EVENT: Cntrl= 66094 (0x0001022e), Param= 0 (0x00000000) AP_AIRSPEED_OFF (NoAccel) 391328 *** EVENT: Cntrl= 66097 (0x00010231), Param= 0 (0x00000000) AP_MACH_OFF (NoAccel) 391328 *** EVENT: Cntrl= 66094 (0x0001022e), Param= 0 (0x00000000) AP_AIRSPEED_OFF (NoAccel) 391375 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE (NoAccel) 391453 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 391484 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 391516 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 391578 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 391609 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 391750 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 391781 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 391812 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 391891 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 391922 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 391984 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 392016 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 392078 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 392125 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 392219 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 392281 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 392312 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 392359 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 392437 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 392500 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 392531 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 392594 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 392625 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 392734 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 392797 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 392828 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 392859 *** EVENT: Cntrl= 65609 (0x00010049), Param= 0 (0x00000000) INCREASE_THROTTLE 397453 HotKey entry at 3210, VK=255, Shifts=255, Flags=0, Result=0 400125 KEYDOWN: VK=117, Waiting=0, Repeat=N, Shifts=0 400125 FSUIPC Control Action: Ctrl=1084, Param=0 400125 .. This key is programmed in FSUIPC 'Keys' options 400625 KEYDOWN: VK=117, Waiting=0, Repeat=Y, Shifts=0 400625 FSUIPC Control Action: Ctrl=1084, Param=0 400625 .. This key is programmed in FSUIPC 'Keys' options 400656 KEYUP: VK=117, Waiting=0 402031 KEYDOWN: VK=18, Waiting=0, Repeat=N, Shifts=4 402031 .. Key not programmed -- passed on to FS 402172 KEYUP: VK=18, Waiting=0 I assigned INCREASE_THROTTLE to a button, engaged the autothrottle (successfuly assigned to a button), advanced the throttles to a steady 1.1 EPR and pressed the button assigned to EPR. Nothing happened. Also used log lvars.lua, resulting in the following log when pressing the 2D panel EPR click spot: ********* LUA: "log lvars" Log [from FSUIPC version 3.952] ********* 385297 System time = 18/12/2009 13:55:37, FS2004 time = 13:50:37 (20:50Z) 385297 LUA: beginning "C:\Program Files\Microsoft Games\Flight Simulator 9\MODULES\log lvars.lua" 385297 *** LUA Error: ...osoft Games\Flight Simulator 9\MODULES\log lvars.lua:21: attempt to call field 'getLvarName' (a nil value) 385297 LUA: ended "C:\Program Files\Microsoft Games\Flight Simulator 9\MODULES\log lvars.lua" 385297 System time = 18/12/2009 13:55:37, FS2004 time = 13:50:37 (20:50Z) ********* LUA execution terminated: Log Closed ********* Given the above information, is there something else I might do to assign QualityWings 757 EPR to a button? Thanks, Jim Harnes
Pete Dowson Posted December 18, 2009 Report Posted December 18, 2009 As the developer does not provide the information, I've used FSUIPC's logging facility to capture events which occur when I click on areas of the 2D panel I want to assign to my yoke. That was successful for everything except the EPR button on the 2D panel. There's no equivalent built into FS, that's why. what is the "EPR button" supposed to do? Is that the equivalent of setting "N1" on the 737 MCP? Also used log lvars.lua, resulting in the following log when pressing the 2D panel EPR click spot: 385297 *** LUA Error: ...osoft Games\Flight Simulator 9\MODULES\log lvars.lua:21: attempt to call field 'getLvarName' (a nil value) The Lvar access facilities only work with FSX and FSUIPC4. They aren't included in the FSUIPC3 version, though I'll be looking into it to see if I can implement them there too. Given the above information, is there something else I might do to assign QualityWings 757 EPR to a button? Have you tried the mouse macro facility to see if it is amenable to that? If the relevant gauge was written using the C/C++ gauge SDK it might be. Pete
Jim Harnes Posted December 19, 2009 Author Report Posted December 19, 2009 There's no equivalent built into FS, that's why. what is the "EPR button" supposed to do? Is that the equivalent of setting "N1" on the 737 MCP?. Will need to check this. I do know that it is not the equivalent of setting "TOGA". The Lvar access facilities only work with FSX and FSUIPC4. They aren't included in the FSUIPC3 version, though I'll be looking into it to see if I can implement them there too. No wonder the error message :oops: ! Have you tried the mouse macro facility to see if it is amenable to that? If the relevant gauge was written using the C/C++ gauge SDK it might be. Will also have a look at this. Thanks, Jim Harnes
Jim Harnes Posted December 19, 2009 Author Report Posted December 19, 2009 To close the loop on this topic: Turns out the XML gauge for setting EPR is using a custom variable (L:thrust,enum) so I'm left with key2mouse, which certainly works well. Should have done some more poking around before posting :oops: ! Jim Harnes
Pete Dowson Posted December 20, 2009 Report Posted December 20, 2009 The Lvar access facilities only work with FSX and FSUIPC4. They aren't included in the FSUIPC3 version, though I'll be looking into it to see if I can implement them there too. I've looked into it, and it looked easy enough. Download FSUIPC version 3.954 via the link in the Updates announcement, and see if the LVar access facilities can help. Regards Pete
Jim Harnes Posted December 21, 2009 Author Report Posted December 21, 2009 That works quite well! Now on with identifying the call for EPR set. Thanks, Jim Harnes
Jim Harnes Posted December 22, 2009 Author Report Posted December 22, 2009 Last post this subject for those who might be interested: QW staff stated: Quote: Its not a FS9 control. That variable is just true/false an indicator that tells the gauge that thrust mode is either on/off. So when the button is pressed again the reverse happens. Its a registered variable in FS so they could set from another gauge, so what you suggest would appear possible. Unquote. I've used the Lvar access facilities Pete so generously added to FSUIPC3, attempted mouse macro creation and wrote a plug in based on log lvars.lua output. I succeeded in causing the EPR button "on light" to switch on, but was never able to identify how to "set from another gauge". However, Key2mouse does the job perfectly. QualityWings is deep into a service pack development/testing so I plan to ask them again in a month or so. Pete, thanks for your outstanding support!! Jim Harnes
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now