February 14, 201313 yr 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
February 14, 201313 yr 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 --------------------------------------------------------------------------------------
February 15, 201313 yr 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
February 15, 201313 yr 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 --------------------------------------------------------------------------------------
February 18, 201313 yr 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
February 18, 201313 yr 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