Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

LUA scripts for ifly737

Featured Replies

 

 

Im on the way. Ive managed to find out how to assign a lua script to a keystroke via FSUIPC.

 

Ive written a script to set up my switches quickly however I didn't expect to have to hold the key down until all the switches had moved . . .but i do. No problem really but I thought a quick press would do it.

 

Have a look at my script and see if it shows why or anything else thats wrong.

 

ipc.writeUW("9400",1128)

 

ipc.writeUW("9400",1131)

 

ipc.writeUW("9400",1134)

 

ipc.writeUW("9400",1137)

 

ipc.writeUW("9400",145)

 

ipc.writeUW("9400",148)

 

ipc.writeUW("9400",151)

 

ipc.writeUW("9400",154)

 

ipc.writeUW("9400",1161)

 

ipc.writeUW("9400",1164)

 

ipc.writeUW("9400",442)

 

ipc.writeUW("9400",445)

 

ipc.writeUW("9400",448)

 

ipc.writeUW("9400",112)

 

ipc.writeUW("9400",115)

 

ipc.writeUW("9400",437)

 

ipc.writeUW("9400",424)

 

ipc.writeUW("9400",634)

 

ipc.writeUW("9400",639)

 

ipc.writeUW("9400",680)

 

ipc.writeUW("9400",685)

 

Thanks

Graham

 

 

REX - 801839

Hello Graham,

 

 

Im on the way. Ive managed to find out how to assign a lua script to a keystroke via FSUIPC.

 

I'm not sure what you are asking here?

LINDA fullfills all your wishes about any functions for the iFly737.

Why do you do this work yourself?

 

 

Beside this I can't help you with this specific offsets, sorry

Guenter Steiner
--------------------------------------------------------------------------------------

Betatester for: A2A, LORBY, FSR-Pillow Tester
--------------------------------------------------------------------------------------

  • Author

Linda is fantastic !

But I don't own enough switches :-( so I'm assigning keystrokes to move my switches.

 

I want one keystroke to move several switches at once so I made the LUA script above. I expected all the switches to move all at once but I have to hold the key down and wait for the switch clicking sounds from fsx to stop.

 

Just wondered why

 

Graham

 

 

REX - 801839

Ah ok,

 

there is a much easier way if you create your own function in LINDA.

 

You have to edit the iFly module for this.

Enable LINDA develope mode, and open the iFlys module

 

Then insert (I would suggest you insert this on the very end of the LUA script) your wanted functions like this example:

 

function Example_Switch_All_Lights ()

GENERAL_LANDING_LIGHT_ON()
ipc.sleep(10)
GENERAL_RUNWAY_TURNOFF_LIGHT_ON()
ipc.sleep(10)
GENERAL_TAXI_LIGHT_ON()
ipc.sleep(10)
GENERAL_LOGO_LIGHT_ON()

end

 

 

The pause (ipc.sleep(10)) is recommended to let LINDA not struggle.

 

Like this example you can combine all functions you like and then assign this function to a keystroke via LINDA

Guenter Steiner
--------------------------------------------------------------------------------------

Betatester for: A2A, LORBY, FSR-Pillow Tester
--------------------------------------------------------------------------------------

  • Author

Thanks very much :) I'm going to try this.

 

Graham

 

 

REX - 801839

 

Will I be able to assign my function to a keyboard stroke in Linda too and not just hardware switches ?

 

Graham

 

 

 

REX - 801839

  • Author

Ok, it takes 2 or more presses to make all the switches move. Does that mean I need to increase the size of the sleep command ?

 

Thanks

Graham

 

 

REX - 801839

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.