This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
DubbelSoftware's profile picture

Multitasking

Started by DubbelSoftware, 10 March 2017 - 05:09 PM
DubbelSoftware #1
Posted 10 March 2017 - 06:09 PM
Hello,

I am developing a Operating System, but i cannot make my own tab functions. Like newTab(program, tabname, id) or something.
I dont want the standard tabs. I need a taskbar at line 2. The first 3 spaces on that line, is for my home button. So the taskbar needs to be begin on 4,3. Can anyone explain me it how it works?
Dave-ee Jones #2
Posted 10 March 2017 - 11:03 PM
Yeah. This is where things get complicated. I recently just learnt how to do something like this, and my advice to you is learn about coroutines and windows. Make test programs based on what other people have done and see how it works for yourself.

Unfortunately as I am on my phone I cannot get you some links atm :(/> but all you need to do is Google something like:

Computercraft multitasking

And look at what other people have done.
Dog #3
Posted 11 March 2017 - 01:49 AM
You'll probably want to read BB's Guide to Coroutines