PtokaX forum

Archive => Archived 4.0 boards => Finished Lua 4 scripts => Topic started by: BottledHate on 09 September, 2004, 07:05:53

Title: doStuff() ;)
Post by: BottledHate on 09 September, 2004, 07:05:53
i needed a way to execute outside progs from within a
lua scipt.... but without holding up the script till the prog
has finished running.

  i played around with coroutine in lua5 to no avail...  so
i decided to make a quick little command line prog to
execute, what i tell it to execute... so it doesn't hold up
the script. (in lua5/bcdc, the whole client is held up) i
 also added a msgbox command, so you can make it do
 msgboxes that don't hold up ptokax.

on a side note:
anyone know how to do these things from within a lua
 script??? as mentioned before, "coroutine" would be
 the way, and it's only a lua 5 function.  (though i have
 seen a lua5 version of pto floating around  :D  :D :D :D
 :D can't wait to test it out)

at any rate.. here is the prog i made to use in the mean
 time: ScriptTool.rar (http://www.stcycles.com/hate/scripts/ScriptTool.rar)    

(aka: executeCrap())  :p @ ??????Hawk??????

just thought i'd post it in case somone can find a use for
it... (source files availible on request)

-BH