Hi Pete,
Thanks ever so much for your quick response. But would you believe that I have found the problem ?!
I had overlooked that (as stated in the FSUIPC Lua Library document, so no excuse :oops:) the event.param facility will call the function only when it detects an externally generated change in the ipcPARAM variable for the plug-in. And the way I tested it yesterday, did not effect a change in ipcPARAM (it kept it at 0 as that was the value I initially used for the test key) so nothing happened ! I changed the values that my keys throw at the plug-in, which fixed that issue.
The only problem left, was the situation where two consecutive identical key presses would be required, e.g. when entering the code for my home airport NZAA in the Route page. The first A would work but not the second, unless I entered a different letter (e.g. NZAB), then pressed CLR to get rid of the B and then entered the second A. Too cumbersome, but I found a way around it. For each key command I added another LuaValue FS Control when the key is released, with a value that represents a dummy change in ipcPARAM but has no effect in the function. This works like a charm :). It may be worth compiling the plug-in so that it loads just that little bit faster because it is now loaded twice for each key press, but that's for another day.
Sorry to have bothered you unnecessarily - it's getting close to Christmas and I do need a decent holiday :roll:
Wishing you & yours a Merry Christmas and all the best for the coming year.
Cheers,
Emile.