Hi,
I have been trying to write a small program to test some HW scripts to see which is the most effective.
I have several hunderd different scripts to test so compiling each time and then testing them is a pain,
so I wrote a small program to edit the script easily and then test them.
I am using the following code to execute the script.
Execute("Hollywood "..PathPart(f$)..Dir$.."/HWtemp.hws")
It works if i execute the script in "Cubic IDE" but when I compile it, I get an error.
A window pops up titled "Tester output" (Tester - name of my compiled program) and in the window the line
Hollywood: Unknown command
I am sure I am doing something really silly but I just can not peg it down.
How do I execute a script from within my compiled program.
Thanks Leo
How do I execute scripts from inside program
How do I execute scripts from inside program
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: How do I execute scripts from inside program
Hmm, what about
Execute("Hollywood:System/Hollywood "..PathPart(f$)..Dir$.."/HWtemp.hws")
?
Execute("Hollywood:System/Hollywood "..PathPart(f$)..Dir$.."/HWtemp.hws")
?
Re: How do I execute scripts from inside program
@ airsoftsoftwair
Yep that fixed it, I was sure I tried that but I must of had something not quite right.
Thanks again
Leo
Yep that fixed it, I was sure I tried that but I must of had something not quite right.
Thanks again
Leo
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32