Jump to content
The simFlight Network Forums

Keight

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by Keight

  1. yes as I wrote this works but I am trying to set the "5" part of the "L_CDU_5" by variable n.
  2. Hi. The control will not send when I use concatenated variable in ipc.control. cdukey = L_CDU_5 works perfectly but cdukey = "L_CDU_" .. n does not despite ipc.display showing L_CDU_5. function SET(n) Click_L = 0x20000000 -- Left mouse click L_CDU_5 = 69632+358 -- Left CDU 5 Key Command cdukey = "L_CDU_" .. n ipc.control(cdukey, Click_L) ipc.display(cdukey) end SET(5) What am I doing wrong?
  3. Here what I get clicking INT/RAD switch to RAD: 1304219 *** EVENT: Cntrl= 66587 (0x0001041b), Param= 77715 (0x00012f93) ROTOR_BRAKE the swtich is springloaded when it gets back to center position: 1304219 *** EVENT: Cntrl= 66587 (0x0001041b), Param= 77717 (0x00012f93) ROTOR_BRAKE now I want to assign M key to that switch and keep sending keypress while holding on RAD position. so the script should look like this? myEventFunction(controlnum, param) -- send keypress here - may need to check the control' parameter first if a Rotor Brake control ipc.keypress(77,8) end -- Wait for control to be received event.control(66587, 77715, myEventFunction)
  4. Could you please give an example of this lua script?
  5. I am using P3Dv5, FSLabs and all jet PMDG aircraft. Not sure what you mean by functioning PTT but there are RAD/INT or MIC/INT switches on the radio management panel. They are animated but doing nothing. I am too far away from programming and for me lua script or lvar are just strange words, but I know using mouse macros one can assign a key or a joystick button for pretty much any button or switch in the VC. So my question is, is it possible to make that working in a way round, you press a button in VC and it sends a key press? It also may find application in using UGCX from FS2Crew, they are also offering hotkeys for initiation, PTT, mic mute/unmute etc. So you can bind RAD for vpilot and INT for UGCX.
  6. Hi. Is there a possibility on the registered version to set the mouse macros but make them work the way round? I mean you press the button in the cockpit that will activate the assigned key or a combination. For instance clicking the PTT button in VC to command CTRL key press which assigned as PTT in vpilot. Thanks.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.