17 posts
Posted 07 August 2012 - 03:28 AM
I am trying to do a very simple code but i keep getting an error when i run the program.
[attachment=370:2012-08-06_21-16-35.png] < this is the error
[attachment=371:2012-08-06_21-17-09.png] < this is the code
65 posts
Location
The Internet
Posted 07 August 2012 - 04:42 AM
On line three, print has a captial 'p'. Lua is case sensitive, and it must be a lowercase 'p'.
17 posts
Posted 07 August 2012 - 04:47 AM
Oh oops I over looked that ha I'll remember next time I get an error like this.
65 posts
Location
The Internet
Posted 07 August 2012 - 04:48 AM
Oh oops I over looked that ha I'll remember next time I get an error like this.
Its alright, its a common error.
17 posts
Posted 07 August 2012 - 05:03 AM
Is there a way after this program runs that it opens up another program automatically?
11 posts
Posted 07 August 2012 - 05:20 AM
I beleive it is something along the lines of shellrun("Program") But I am not quite sure. If you use the command help shellapi, it should be in there somewhere.
17 posts
Posted 07 August 2012 - 05:24 AM
I beleive it is something along the lines of shellrun("Program") But I am not quite sure. If you use the command help shellapi, it should be in there somewhere.
Sweet thanks I'll have to give it a try
15 posts
Posted 07 August 2012 - 12:22 PM
os.run({}, "progamname")
is what I would find sufficient enough
if its on another drive/dir, then
"dir/prog" would work
1111 posts
Location
Portland OR
Posted 07 August 2012 - 01:15 PM
os.run() is good if you have extra args that you would like to pass to the program. Otherwise it's easier to just use shell.run(). Just make sure that you don't nest a program within itself.
17 posts
Posted 07 August 2012 - 03:42 PM
os.run() is good if you have extra args that you would like to pass to the program. Otherwise it's easier to just use shell.run(). Just make sure that you don't nest a program within itself.
Thanks shell.run() worked for what i'm doing!