LuaCOM in OBS

Aidan Orane

New Member
Hello,

Can you help let a Lua script interact with COM objects from OBS (loaded via Tools > Scripts)?

The following works from a vanilla "Lua for Windows" installation:
require("luacom")
word = luacom.CreateObject("Word.Application")
assert(word)
word.Visible = true

A fresh install of OBS ship with LuaCOM, so it throws an error "module 'luacom' not found", which is not unexpected, of course.

I copied luacom.dll from Lua for Windows to "obs-studio\data\obs-scripting\32bit", but then OBS crashes with any error messages upon trying to load the DLL at the "require" statement.

I suspect some dependencies are missing, but as OBS silently crashes, it's difficult to debug.

Would you know how to let a Lua script interact with COM objects in OBS?

Thank you.

(Windows 10; OBS 27.2.4)
 
Top