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
[02 Feb 2011] How to run a cli command inside a hollywood window ?
- airsoftsoftwair
- Posts: 5834
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
[07 Feb 2011] Re: How to run a cli command inside a hollywood window ?
Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 07 Feb 2011 22:34:50 +0100
This should be easily possible using the "Run program" action event in Designer. Or you can use the Execute() or Run() command of Hollywood.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?
-
lucaricossa
[08 Feb 2011] Re: How to run a cli command inside a hollywood window ?
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 08 Feb 2011 05:52:53 -0000
I tried, but the output of printf goes into a console on the WB and not in the holl. window...
- airsoftsoftwair
- Posts: 5834
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
[08 Feb 2011] Re: Re: How to run a cli command inside a hollywood window ?
Note: This is an archived post that was originally sent to the Hollywood mailing list on Tue, 08 Feb 2011 14:39:09 +0100
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:I tried, but the output of printf goes into a console on the WB and not in the holl. window...
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")
-
lucaricossa
[09 Feb 2011] Re: How to run a cli command inside a hollywood window ?
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 09 Feb 2011 05:50:36 -0000
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 see what you mean. You can't redirect the output directly to Hollywood,
- airsoftsoftwair
- Posts: 5834
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
[09 Feb 2011] Re: Re: How to run a cli command inside a hollywood window ?
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 09 Feb 2011 09:41:13 +0100
Ok, I'm afraid it's not possible to redirect this to the Hollywood window.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...
-
lucaricossa
[09 Feb 2011] Re: How to run a cli command inside a hollywood window ?
Note: This is an archived post that was originally sent to the Hollywood mailing list on Wed, 09 Feb 2011 13:44:15 -0000
Thanks anyway !Ok, I'm afraid it's not possible to redirect this to the Hollywood window.