I'm still unsure why the Quit() would not work. I guess something else is getting in between. Then your suggestion wouldn't work either. When you want to execute programs from Lua, you have to use os.execute("here goes the command"), e.g. os.execute("killall kindlevncviewer"). Well, try to see if that fixes your problem.
I rather guess the K2 has some slightly differing key codes. You can use Lua's "print(...)" function to print some debug output to the standard output - so try if you manage to find out the right key codes. I would be interested :-)
|