2 posts
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?
124 posts
Location
Liverpool (no I am not a Scouser Im form Holland)
Posted 01 April 2012 - 02:50 PM
yes you can just type
shell.run("dj")
1604 posts
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
124 posts
Location
Liverpool (no I am not a Scouser Im form Holland)
Posted 01 April 2012 - 04:28 PM
yes but this way he doesn't need an api
2 posts
Posted 05 April 2012 - 12:15 AM
Thanks, Vandie. That really helps!