Hollywood programs & commands cli/shell

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

Hollywood programs & commands cli/shell

Post by Juan Carlos » Mon Dec 30, 2013 4:05 pm

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 » Mon Dec 30, 2013 10:48 pm

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: 419
Joined: Mon Sep 06, 2010 1:02 pm
Location: Palencia
Contact:

Re: Hollywood programs & commands cli/shell

Post by Juan Carlos » Tue Dec 31, 2013 2:47 pm

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: 419
Joined: Mon Sep 06, 2010 1:02 pm
Location: Palencia
Contact:

Re: Hollywood programs & commands cli/shell

Post by Juan Carlos » Thu Jan 02, 2014 4:16 pm

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 » Fri Jan 03, 2014 1:23 am

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: 2557
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Hollywood programs & commands cli/shell

Post by airsoftsoftwair » Fri Jan 03, 2014 1:35 pm

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: 419
Joined: Mon Sep 06, 2010 1:02 pm
Location: Palencia
Contact:

Re: Hollywood programs & commands cli/shell

Post by Juan Carlos » Fri Jan 03, 2014 4:27 pm

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: 80
Joined: Wed Feb 17, 2016 12:48 am
Location: Zdzieszowice, Poland
Contact:

Re: Hollywood programs & commands cli/shell

Post by r-tea » Wed Sep 13, 2017 5:48 pm

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