[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: NEWBIE Question: LUA wait() function?
- From: "steve donovan" <steve.j.donovan@...>
- Date: Wed, 12 Mar 2008 10:40:43 +0200
This is the famous 'black box' problem with os.execute on Windows. The
only way to get around it is a special version of execute (like I do
with SciTE). But in that case, you have to be able to dynamically load
extensions anyway, and could pull in the Win32 Sleep function.
The question is, does this application export its Lua symbols? Or,
alternatively, does it link in Lua dynamically? (typically if there's
a lua51.dll or something like that). In that case, I can help you with
Although, having to _wait_ in a script seems awkward. Depending how
this app's threading works, this would lock things up totally. Does
this app have some kind of callback mechanism?
On Wed, Mar 12, 2008 at 10:22 AM, Rolf <email@example.com> wrote:
> I downloaded MSN sleep program here:
> then tried:
> function test()
> for i=1,3 do
> os.execute("sleep.exe 5")
> This seemed to work, except that I got a cmd window that opened and stayed