[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Winapi 2nd beta
- From: Lorenzo Donati <lorenzodonatibz@...>
- Date: Mon, 13 Jun 2011 13:15:48 +0200
On 13/06/2011 11.16, steve donovan wrote:
This is the second beta release of winapi: basic Windows bindings for Lua.
The major change is that (mostly) the library works with widechar
unicode internally, and allows you to specify the encoding up front.
By default it is CP_ACP, but you can set it explicitly to UTF-8.
Running this in SciTE puts a little bit of Greek in the caption:
local W = require 'winapi'
win = W.foreground_window()
There is a 'get_disk_network_name' function for finding out the UNC
name mapped to a particular drive.
As suggested, P:get_process_name(true) will give the full path of a
process; the default is just to give the exe name.
show_message is now generalized like so:
Another change is that there is an explicit Thread object returned
from functions like winapi.timer, which supports suspend, resume and
Precompiled binary for Lua for Windows is at ; source zipball is at
. Docs are at  and .
(Still only 25K !)
Ok, this is almost magic! Now if there were an equally powerful library
for *NIX systems (with the same low footprint) plus a lightweight
abstraction layer, then we could have a nice little cross-platform
automation tool (at ~100kB + Lua) :-)