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

Dj in an api

Started by redredneck, 01 April 2012 - 11:33 AM
redredneck #1
Posted 01 April 2012 - 01:33 PM
I'm programming a windows in lua, and I'm wondering if I can Run the dj program right from in it?
Ian-Moone #2
Posted 01 April 2012 - 02:50 PM
yes you can just type
shell.run("dj")
MysticT #3
Posted 01 April 2012 - 04:10 PM
yes you can just type
shell.run("dj")
Actually, that's wrong, you can't call the shell api from an api.
You can use the disk api, like the dj program does. Check the source of the dj program to see how to do it: .minecraft/mods/ComputerCraft/lua/programs/dj
Ian-Moone #4
Posted 01 April 2012 - 04:28 PM
yes but this way he doesn't need an api
redredneck #5
Posted 05 April 2012 - 12:15 AM
Thanks, Vandie. That really helps!