spokes2112 Posted October 16, 2018 Report Posted October 16, 2018 Hi Pete, Hope your travels & visits were nice. Something just noticed & not really a big deal except for the repetitive nature (the repeats could get quite large) in a saved flight file. The logging of the lua type window keeps going and going.. Maybe a simconnect bug? I've tried setting ipc.setowndisplay just once on the lua load, and, for a different test, each time the display function gets called - makes no difference. Shouldn't it just update the required entries under the window header? ( [window name] ) Replace, not append? FSX Acceleration, FSUIPCv4.974b (maybe applies to FSUIPC v5 too?) EDIT - second question. Just may find out before you return but if not, need clarification. In the Lua Library pdf when using ipc.keypress it says to use the keys chart in the advanced users pdf while when using ext.sendkeys it refers to the key chart in the Lua Library pdf. Are these 2 different on purpose? The only glaring difference is the use of shift code 8, "normal" versus "tab". Regards, Roman Records from a saved flight below - [STATUS] Undocked=False ScreenUniCoords=0, 122, 819, 0 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=0, 122, 819, 0 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=0, 122, 819, 0 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=0, 122, 819, 0 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=0, 122, 819, 0 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=0, 122, 819, 980 UndocCoords=0, 0, 0, 0 [DC F-14D Commands] Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 184 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0 Undocked=False ScreenUniCoords=3276, 122, 1638, 434 UndocCoords=0, 0, 0, 0
Pete Dowson Posted October 19, 2018 Report Posted October 19, 2018 On 10/16/2018 at 5:38 PM, spokes2112 said: Something just noticed & not really a big deal except for the repetitive nature (the repeats could get quite large) in a saved flight file. The logging of the lua type window keeps going and going.. Sorry, what logging? On 10/16/2018 at 5:38 PM, spokes2112 said: I've tried setting ipc.setowndisplay just once on the lua load, and, for a different test, each time the display function gets called - makes no difference. Ah, are you saying something logs entries only when you use "ipc.setowndisplay" or, also at other times? On 10/16/2018 at 5:38 PM, spokes2112 said: Shouldn't it just update the required entries under the window header? ( [window name] ) Replace, not append? I don't know what is creating those entries, nor what they refer to. FSUIPC certainly doesn't touch flight files, and in any case only ever uses Windows "Private Profile" functions to amend INI and CFG files, I don't know any way it is possibly to have more that one entry in any section with the same keyword. Using the same keyword replaces its previous entries -- there;s no other way to do that. Writing null removed the keyword entry. Whatever is writing those is not using those Windows functions. Also, in all my experience, special windows entries at the end of a saved flight file are created when the FLT is saved and reflect the state of that window at that time. If they are accumulating in an existing file whilst the sim is running then something else is doing it. I don't thiink either SimConnect or FSUIPC is at all involved in this. On 10/16/2018 at 5:38 PM, spokes2112 said: In the Lua Library pdf when using ipc.keypress it says to use the keys chart in the advanced users pdf while when using ext.sendkeys it refers to the key chart in the Lua Library pdf. Are these 2 different on purpose? The keycodes must surely be all the same. Any differences are only in the shift codes available. On 10/16/2018 at 5:38 PM, spokes2112 said: The only glaring difference is the use of shift code 8, "normal" versus "tab". There are actually errors there -- only pointed out to me very recently. I've corrected the document here ready for the next update. Here is the corrected section: The shifts value is a combination (add them) of the following values, as needed: 1 Shift 2 Control 4 Tab 8 not used 16 Alt (take care with this one—it invokes the Menu) 32 Windows key (left or right) 64 Apps Menu key (the application key, to the right of the right Windows key) NOTE that this is different to previously documented shifts – the earlier list was in error, having ‘Tab’ at value 8 and a second ‘Alt’ at value 4 These are the same as those listed in the Advanced guide for [Buttons] programming, but different to those for the Lua library event.key function and those listed in the Advanced guide for [Keys] assignment recording (the ALT and TAB being interchanged). All this is most unfortunate -- they are "historical", and originally based on Windows shift codes in the KEYDOWN/KEYUP messages. When I discovered these differences (long ago) it was far too late to change them. Pete 1
spokes2112 Posted October 20, 2018 Author Report Posted October 20, 2018 Pete - Thank you as always! The revised shift #s has saved me from a big headache.. Did some more testing regarding the constant entries of the "lua type" window opening within a saved flight file. Somewhere in FS it temporarily saves each time the "lua type" window gets opened from the simconnect call. When the flight is saved it logs each one of these "opens" to the flight file. Guess that is what MS wanted - Oh Well, again, no big deal. But it just doesn't seem correct. Thanks again, Roman
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