An open API service indexing awesome lists of open source software.

https://github.com/hymkor/nyole

Nihong Yet another OLE extension for lua
https://github.com/hymkor/nyole

Last synced: 23 days ago
JSON representation

Nihong Yet another OLE extension for lua

Awesome Lists containing this project

README

        

Nihongo Yet another OLE for lua
===============================

Sample
------

### Create OLE Object

local ole=require('nyole')
local objShell = ole.create_object("WScript.Shell")
print(objShell.SpecialFolders("Desktop"):Item(0))

- `create_object` is the function for ANSI-String on the current codepage.
- For utf8, use `create_object_utf8`

### Iterator

local ole=require('nyole')
local fsObj=ole.create_object('Scripting.FileSystemObject')
local folder=fsObj:GetFolder('.')
local files=folder:files()

for val in files:__iter__() do
print(val.name)
end
print("done")

Required Software to build
--------------------------

- [LuaBinaries 5.3](http://luabinaries.sourceforge.net/)
- [tdm-gcc](http://tdm-gcc.tdragon.net/)

### To build:

git clone https://github.com/zetamatta/nyole.git nyole
cd nyole
unzip PATH\TO\lua-5.3_Win??_dllw4_lib.zip
make