Hollywood programs & commands cli/shell

Find quick help here to get you started with Hollywood
Post Reply
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

Hollywood programs & commands cli/shell

Post by Juan Carlos »

I want to know if it is possible start a Hollywood program from Workbench CLI/shell that it makes or work with other programs, or files, the real problem there are people that ask me if is possible that V.A.M.P. run from shell open pictures, videos, or music files, but from CLI only I could start the VAMP player no open video or picture, it is possible and how?
Best regards,
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Hollywood programs & commands cli/shell

Post by djrikki »

You mean you wanted to read Shell Arguments in order to say open a video etc...

Use GetCommandLine() - see manual.

file:///Hollywood:Help/HTML/GetCommandLine.html
( Paste in address bar )
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

Re: Hollywood programs & commands cli/shell

Post by Juan Carlos »

djrikki wrote:You mean you wanted to read Shell Arguments in order to say open a video etc...

Use GetCommandLine() - see manual.

file:///Hollywood:Help/HTML/GetCommandLine.html
( Paste in address bar )
Thanks for the suggestion and the help, I'll try to test it because the Windos version will be different to MOS and OS4-OS3 command version and work.
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

Re: Hollywood programs & commands cli/shell

Post by Juan Carlos »

I have one doubt the get the parameters with GetCommandLine() I have to use a routine as with the drag&drop? to pass the commands from shell to program?
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Hollywood programs & commands cli/shell

Post by djrikki »

I am sorry I do not know what you are asking.
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Hollywood programs & commands cli/shell

Post by airsoftsoftwair »

Maybe he is talking about whether or not GetCommandLine() requires you to use an event handler callback as it is the case with "OnDropFiles"? The answer would be no then.
User avatar
Juan Carlos
Posts: 887
Joined: Mon Sep 06, 2010 1:02 pm

Re: Hollywood programs & commands cli/shell

Post by Juan Carlos »

Andreas wrote:Maybe he is talking about whether or not GetCommandLine() requires you to use an event handler callback as it is the case with "OnDropFiles"? The answer would be no then.
And how is the way to run a program taking the external commands from GetCommandLine(), for example the V.A.M.P. player open a video, this solution is good for other users to make programs for example load pictures, etc., instead of official programs of AmigaOS, MorphOS, AROS; etc.
User avatar
r-tea
Posts: 133
Joined: Tue Feb 16, 2016 11:48 pm
Location: Zdzieszowice, Poland
Contact:

Re: Hollywood programs & commands cli/shell

Post by r-tea »

Juan Carlos wrote:And how is the way to run a program taking the external commands from GetCommandLine(), for example the V.A.M.P. player open a video, this solution is good for other users to make programs for example load pictures, etc., instead of official programs of AmigaOS, MorphOS, AROS; etc.
Have you read the manual of GetCommandLine()? There is a complete example how to use it.
Post Reply