Yes, it worked, thank you very much for the quick response! I'm building a homemade Baron cockpit, and I always have trouble assigning buttons on my device in Baron. Could you tell me how I can find the required code and parameters for the script using MFS2020 and FSUIP7? I saw a table with Lvar and other values in the manual, but I don't understand how to use them. For example, I just copied your lines, ipc.execCalcCode("(L:var_yokeTimerMode_L, number) 1 + 3 % (>L:var_yokeTimerMode_L, number)") saved it as a LUA file, and assigned it to FSUIPS. Can I do this with any button? For example, the CWS button on the yoke—I can't find it in the commands... and what does it turn on and off? The CTR and SEL buttons work, but they don't visually click in the cockpit... Sorry for the many questions, but I doubt anyone else can help except you, as the author of this wonderful model.
![alt text] https://ru.files.fm/f/tdkjxcw8jc(image url)