This commit is contained in:
arpruss 2015-09-26 13:02:21 -05:00
parent 9b558b05f6
commit dc379ec718
2 changed files with 17 additions and 0 deletions

View File

@ -253,6 +253,15 @@ function handle_events(cmd, args)
return nil
end
function background_launch(window_identifier, cmd, args)
if not is_windows then return false end
local cmdline = 'start "' .. window_identifier .. ' /MIN "' .. cmd .. '" '
for i = 1,#args do
cmdline = cmdline .. '"' . args[i] . '"'
end
os.execute(cmdline)
end
function handle_command(line)
local cmd, argtext = string.match(line, "([^(]+)%((.*)%)")
if not cmd then return end

View File

@ -0,0 +1,8 @@
local source = debug.getinfo(1).source:sub(2)
print(os.execute('start /MIN "raspberryjammod-minetest-python-test" /MIN "c:\\pypy\\pypy.exe" test.py'))
print("running")
print(os.execute('taskkill /F /FI "WINDOWTITLE eq raspberryjammod-minetest-python-test"'))
print("done")
while 1 do end