Jump to content




"background Task"


  • You cannot reply to this topic
1 reply to this topic

#1 Mitchfizz05

  • Members
  • 125 posts
  • LocationAdelaide, Australia

Posted 31 August 2013 - 01:43 AM

Hello.
I'm looking to make a program that runs in the background and still allows you to use the computer like normal.
How can I do this?

parallel.waitForAny(myFunction, ???)

#2 Zudo

  • Members
  • 800 posts
  • LocationUK

Posted 31 August 2013 - 01:54 AM

How about

function runShell()
 os.run({}, "shell")
end

function myProgram()
 os.run({["print"] = function() end, ["write"] = function() end}, "myProgram")
end

parallel.waitForAny(runShell, myProgram)
?





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users