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
- Host: GitHub
- URL: https://github.com/hymkor/nyole
- Owner: hymkor
- Created: 2015-04-05T18:39:03.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-02T13:47:12.000Z (over 9 years ago)
- Last Synced: 2025-02-10T15:50:56.876Z (3 months ago)
- Language: C++
- Size: 195 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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