mirror of
https://github.com/vxcontrol/lualibs-winapi.git
synced 2026-07-01 13:54:03 -04:00
11 lines
193 B
Lua
11 lines
193 B
Lua
require 'winapi'
|
|
P,W = winapi.spawn_process 'lua test-timer.lua'
|
|
stuff = W:read()
|
|
k = 1
|
|
while stuff do
|
|
io.write(stuff);
|
|
stuff = W:read()
|
|
k = k + 1
|
|
if k > 15 then P:kill() end
|
|
end
|