Trying to create a Python script for automating basic tasks in the cockpit, but it doesn’t do anything on the aircraft. Never used SDK before. MSFS 2024, FBW A32NX
from SimConnect import SimConnect, AircraftRequests
sm = SimConnect()
aq = AircraftRequests(sm, _time=2000)
aq.set("FLAPS HANDLE INDEX", 1)
Also tried
from SimConnect import *
sm = SimConnect()
aq = AircraftRequests(sm, _time=2000)
ae = AircraftEvents(sm)
def event():
ae.find("FLAPS_1")
event()
Thank you! I got the events working in the meantime with a different syntax, but still no luck with changing vars.
As you see, I’m currently using Python SimConnect, if I switch to pysimconnect that you linked to, do I need to rewrite my whole script? Or does it use the same commands? Edit: Found the sample file, it doesn’t use the same commands but it’s not that complicated either, will test if I can edit the vars with it. Edit 2: Works now!! Thank you!!