Skip to content

anatinesquire40/LuIbexWin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LuIbexWin

LuIbexWin is a specialized module that allows Lua to interact directly with the Windows API (Win32).
It provides access to native functions, structures, messages, and system utilities, making Lua a powerful tool for developing applications and scripts that require deep control of the Windows environment.

Compatibility

Lua 5.3 and newer. 64 bits only.

Prerequisites

Before compiling and using LuIbexWin, make sure you have:

  1. CMake ≥ 3.16
  2. Visual Studio with C++ and MASM support (as LuIbexWin only supports MSVC)
  3. Lua installation (5.3 or newer) and in x64
  4. Sufficient disk space (as LuIbexWin exposes many functions and complex structures)

Lua Setup

You can see that the lua folder is empty, you need to put the includes and the library that the module requires.

  1. Includes Create a folder in the lua folder called include In the Lua Source folder go to src\ and copy: lua.h, lua.hpp, lauxlib.h, luaconf.h and lualib.h to include
  2. Library Create a folder in the lua folder called lib In the build of the Lua Source you will find luaXX.lib, copy it to lib and rename to lua.lib

Library Compilation

  1. Open a terminal in the project directory.

  2. Create a build directory and navigate to it:

    mkdir build
    cd build
  3. Generate build files with CMake:

    cmake ..

    if you want to configure as static build just use:

    cmake -DBUILD_STATIC=ON ..
  4. Compile the library:

    cmake --build . --config Release

    This will produce luibexwin.dll ready to use.


Installation

To make Lua use LuIbexWin correctly:

  1. Lua Modules: Copy the ibexwin directory (containing h.lua and other scripts) into your Lua modules folder (package.path).

  2. Native Modules: Copy luibexwin.dll into your Lua native libraries folder (package.cpath).

  3. Make sure package.path and package.cpath include these directories so that require "ibexwin.h" work properly.

About

LuIbexWin – a powerful Lua module for direct Win32 API access, exposing native functions, structures, and utilities for deep Windows scripting and application development. It also adds the posibility to Lua to manage memory without low level languages.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages