The LUA Interpreter comes with various library modules to access Windows features.
One of these is the luacom library, which accesses the COM subsytem, and is used by many of my Plugins.
Most of my Plugins use it to check latest version in the FH Plugin Store via HTTP Requests:
Code: Select all
http = luacom.CreateObject("winhttp.winhttprequest.5.1")
http:Open("GET","http://www.family-historian.co.uk/lnk/checkpluginversion.php?id=123",false)
http:Send()
strReturn = http.Responsebody
Code: Select all
luaShell = luacom.CreateObject("WScript.Shell")
strValue = luaShell:RegRead("HKCU\\Software\\Ancestral Sources\\00\\Version")
Since the former code works OK, it is difficult to explain why the latter does not.
I could perhaps compose a very small Plugin script to exercise some of these features that you could try running to see what works and what does not.
It might also be worth sending the above snippets of code to Crossover support to see if they can explain why one works and the other does not.