Page 1 of 1
[02 Feb 2011] How to run a cli command inside a hollywood window ?
Posted: Sat Jun 13, 2020 5:32 pm
by lucaricossa
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 02 Feb 2011 18:03:15 -0000
Hello, I am not really a coder... My son learns to wirte small C programs and I wondered if it was possible to creata a window in Hollywood in order to play those simple things inside a hollywood window. Can I achieve it with Designer? Else?
Thanks, Luca
[07 Feb 2011] Re: How to run a cli command inside a hollywood window ?
Posted: Sat Jun 13, 2020 5:32 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 07 Feb 2011 22:34:50 +0100
Hello, I am not really a coder... My son learns to wirte small C programs and I wondered if it was possible to creata a window in Hollywood in order to play those simple things inside a hollywood window. Can I achieve it with Designer?
This should be easily possible using the "Run program" action event in Designer. Or you can use the
Execute() or
Run() command of Hollywood.
[08 Feb 2011] Re: How to run a cli command inside a hollywood window ?
Posted: Sat Jun 13, 2020 5:32 pm
by lucaricossa
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 08 Feb 2011 05:52:53 -0000
This should be easily possible using the "Run program" action event in Designer. Or you can use the
Execute() or
Run() command of Hollywood.
I tried, but the output of printf goes into a console on the WB and not in the holl. window...
[08 Feb 2011] Re: Re: How to run a cli command inside a hollywood window ?
Posted: Sat Jun 13, 2020 5:32 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 08 Feb 2011 14:39:09 +0100
I tried, but the output of printf goes into a console on the WB and not in the holl. window...
Ok, I see what you mean. You can't redirect the output directly to Hollywood, but you could redirect it to a file and then print the contents of this file to Hollywood. E.g. something like this:
Code: Select all
Execute("MyProgram >T:TmpFile")
OpenFile(1, "T:TmpFile")
While Not Eof(1)
Local tmp$ = ReadLine(1)
NPrint(tmp$)
Wend
CloseFile(1)
DeleteFile("T:TmpFile")
[09 Feb 2011] Re: How to run a cli command inside a hollywood window ?
Posted: Sat Jun 13, 2020 5:32 pm
by lucaricossa
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 09 Feb 2011 05:50:36 -0000
Ok, I see what you mean. You can't redirect the output directly to Hollywood,
yes, but the output is interactive. My son wrote a small game, where you have to find out a hidden number. You can choose between three difficulty levels. You give a number, and it says if it is too small or too big. Then you give another number, and so forth...
[09 Feb 2011] Re: Re: How to run a cli command inside a hollywood window ?
Posted: Sat Jun 13, 2020 5:32 pm
by airsoftsoftwair
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 09 Feb 2011 09:41:13 +0100
yes, but the output is interactive. My son wrote a small game, where you have to find out a hidden number. You can choose between three difficulty levels. You give a number, and it says if it is too small or too big. Then you give another number, and so forth...
Ok, I'm afraid it's not possible to redirect this to the Hollywood window.
[09 Feb 2011] Re: How to run a cli command inside a hollywood window ?
Posted: Sat Jun 13, 2020 5:32 pm
by lucaricossa
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 09 Feb 2011 13:44:15 -0000
Ok, I'm afraid it's not possible to redirect this to the Hollywood window.
Thanks anyway !