Jump to content
The simFlight Network Forums

Recommended Posts

Posted (edited)

Hi there,

I want to do this:
- switch on joystick goes on -> pulse state 1 to control (once), wait 2 seconds, pulse state 2 to control (once)
- switch on joystick goes off -> pulse state 0 to control

My problem is "wait 2 seconds". Is there any solution for this?

Here the relevant part of my INI file:
[Buttons.PMDG 747]
0=R1,19,C69645,1 -{Custom control: <69645>}-
1=R1,19,C69645,2 -{Custom control: <69645>}-
2=U1,19,C69645,0 -{Custom control: <69645>}-

Thanks in advance / Best regards, Ralph

Edited by Ralph_E
Posted
1 hour ago, Ralph_E said:

I want to do this:
- switch on joystick goes on -> pulse state 1 to control (once), wait 2 seconds, pulse state 2 to control (once)
- switch on joystick goes off -> pulse state 0 to control

My problem is "wait 2 seconds". Is there any solution for this?

You'd need to use a small Lua plug-in to do it, assigned just to the ON  event. So you'd only have two lines in the assignments, both facilitated in the Options (no need for INI editing operations),

The Lua script would simply send the control (ipc.control function) then sleep(2000) then send the control again. Three lines of script, that's all.

Pete

 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.