既存のオブジェクトがあれば、それを取得する
-- If there is an instance of Word(r) running, -- it will end it word = luacom.GetObject("Word.Application") if word then word:Quit() word = nil
FrontPage