Joan A Posted December 22, 2021 Report Share Posted December 22, 2021 Hi, I'm trying to run a Lua automatically without key press. The lua name is 737AutoOps, the ini file looks like this: [LuaFiles] 1=737AutoOps [Auto] 1=Lua 737AutoOps and the lua file script: function ATRST () var = ipc.readSW(0x088C) if var < 1390 then ipc.macro("737NGXU:ATRST") end event.timer(500, "ATRST") I want to run a macro file (which works ok if assigned to a key) when thrust levers are less than 1390. I don't know what I'm missing here. Thanks in advance. Link to comment Share on other sites More sharing options...
Joan A Posted December 22, 2021 Author Report Share Posted December 22, 2021 Solved! An end was missing. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now