How do I execute scripts from inside program

Find quick help here to get you started with Hollywood
Post Reply
User avatar
Redlion
Posts: 96
Joined: Sun Jul 10, 2011 5:05 am
Location: Perth, Western Australia

How do I execute scripts from inside program

Post by Redlion »

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
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
User avatar
airsoftsoftwair
Posts: 5446
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How do I execute scripts from inside program

Post by airsoftsoftwair »

Hmm, what about

Execute("Hollywood:System/Hollywood "..PathPart(f$)..Dir$.."/HWtemp.hws")

?
User avatar
Redlion
Posts: 96
Joined: Sun Jul 10, 2011 5:05 am
Location: Perth, Western Australia

Re: How do I execute scripts from inside program

Post by Redlion »

@ airsoftsoftwair

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
Post Reply