December 18, 20214 yr Does anyone know if its possible to send a keypress ( L in this case) when I click on the aircraft power button with my mouse? I use AAO. I fly the PMDG DC6 and to see the nav lights and beacon light, you have to press the L key in addition to powering up the aircraft and clicking the nav and beacon lights (its a bug). I seem to always forget about the L key and then when I look at the external view, I have no lights and then realize I must press the L key. Not a huge problem but it bothers my OCD..... 🙂 Thanks Edited December 18, 20214 yr by lancealotg
December 18, 20214 yr Commercial Member On 12/18/2021 at 7:09 PM, lancealotg said: when I click on the aircraft power button with my mouse What exactly is the "aircraft power button"? Turning on the batteries? Not sure, but theoretically I would create a script like this: [(A:ELECTRICAL MASTER BATTERY, Bool) 1 ==] 1 (>K:ALL_LIGHTS_TOGGLE) and run it as an "Aircraft Automated Script" in "one shot" mode. The "[ ]" brackets declare a conditional script, and the K - Event will be exectued only when that condition is met (in this case, when the battery has been connected) and only once. I have no idea if the K event will do what you ask, or if you have to maybe trigger it twice. You can send the "L" key too if you want, but that shouldn't be necessary. You could also just turn on the lights that you need. Edited December 20, 20214 yr by Lorby_SI LORBY-SI
December 18, 20214 yr Author Thanks Lorby but it didnt work. I believe the dc6 code is different. I will try using the dc6 code using your template. Thanks for steering me in the right direction. It is much appreciated. Edited December 18, 20214 yr by lancealotg
December 18, 20214 yr I use this free utility,because there are no Win 10 drivers for my Microsoft Track Ball Explorer. https://x-mouse-button-control.en.softonic.com/ Jim Driscoll, MSI Raider GE76 12UHS-607 17.3" Gaming Laptop Computer - Blue Intel Core i9 12th Gen 12900HK 1.8GHz Processor; NVIDIA GeForce RTX 3080 Ti 16GB GDDR6; 64GB DDR5-4800 RAM; Dual M2 2TB Solid State Drives.Driving a Sony KD-50X75, and KDL-48R470B @ 4k 3724x2094,MSFS 2020, 30 FPS on Ultra Settings. Jorg/Asobo: “Weather is a core part of our simulator, and we will strive to make it as accurate as possible.”Also Jorg/Asobo: “We are going to limit the weather API to rain intensity only.”
December 19, 20214 yr Commercial Member 9 hours ago, lancealotg said: I believe the dc6 code is different. This is my aircraft automated one-shot script: [(L:dc6_082_obj,·number)·1·==]·1·(>L:dc6_041_obj,·Number)·0·(>L:dc6_040_obj,·Number) This turns on the beacon and sets the position lights to steady when you flip the battery switch up in the DC6. I was running it as a one-shot script, but you could also run something like it all the time as a repeating script. That script would look like this: (L:dc6_082_obj,·number)·1·==·if{·1·(>L:dc6_041_obj,·Number)·0·(>L:dc6_040_obj,·Number)·}(there can be no [...] brackets in a repeating script!!) The "L" key does nothing for me, neither on the keyboard itself nor when I send it with AAO as a VKey from within the script: [(L:dc6_082_obj,·number)·1·==]·(FOCUS:flightsimulator)·(SPLIT:100)·(VKD:38-166-76)·(SPLIT:100)·(VKU:38-166-76) (the keyboard scancodes (virtual key down/up) may be different on your computer. You have to use the "Insert VKey" button to get your own codes into the script. And it will only do anything if the sim window has the focus at that point. The SPLITs are necessary because MSFS doesn't react to keyboard events that are sent too quickly) Edited December 19, 20214 yr by Lorby_SI LORBY-SI
December 20, 20214 yr Author Success....!!! I could not get the Vkey (L) to work but I used the all lights toggle (which the L key on my setup controls) as a one shot and it works. [(L:dc6_082_obj,·number)·1·==]·1·(>K:ALL_LIGHTS_TOGGLE) Thanks for all the help Lorby. Also, hope you don't mind if I make a feature request for the future but would it be possible to include a "check for update" button on the main windows somewhere. I was previously trying to get the AP reset function to work and found out I was one version back. I upgraded and that function then worked right away. Take care and thanks again for the help
Archived
This topic is now archived and is closed to further replies.