hi,
I'm creating application that does show GSX menu and relevant buttons to input menu selections to GSX via browser in my iPad. For that i'm running wideclient and saving the menus to text file my application reads and converts to webpage.
usually it works great but i've found out one bug that happens everytime. Seeing from the ipc.log in lua script i can see that wideclient is not even loggin the menu when this happens so seems it's not a bug in my app reading the text file but something inside GSX, simulator, wideserver or wideclient or just my ini settings.
really easy to reproduce if you have gsx:
1) open gsx menu and request pushback and make selections needed
2) abort pushback
3) open gsx menu again and request pushback. the next screen asking for pushback directions is not logged?
attached lua script i'm using. Could you check and test if it's only me and if possible give some hints how to make it to work
FYI, i haven't tested if this works better when running wideclient on 2nd machine but will do that after weekend. Currently running on same machine where sim running with instance=1 ini setting. i can also provide logs if needed after weekend when i'm back in the sim
function textandmenu(mtype, colour, scroll, delay, id, n, msgs)
if n > 0 then
ipc.log("text and menu function type ".. mtype .. " messages ".. n)
if mtype == 2 then
-- Menu
file = io.open("gsxmenu.txt", "w+")
io.output(file)
--first row of messages is not needed as 2nd one is the subject of menu and 1st is just gsx general subject
--io.write(msgs[1])
--io.write("\n")
io.write(msgs[2])
io.write("\n")
i = 3
j = 1
while i <= n do
io.write(j .. " - " .. msgs[i])
io.write("\n")
i = i + 1
j = j + 1
if (j > 9) then
j = 0
end
end
io.close(file)
else
-- Text
file = io.open("gsxtext.txt", "w+")
io.output(file)
io.write(msgs[1])
io.write("\n")
io.close(file)
end
end
end
event.textmenu(0, "textandmenu")