Page 1 of 1

Hollywood programs & commands cli/shell

Posted: Mon Dec 30, 2013 3:05 pm
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,

Re: Hollywood programs & commands cli/shell

Posted: Mon Dec 30, 2013 9:48 pm
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 )

Re: Hollywood programs & commands cli/shell

Posted: Tue Dec 31, 2013 1:47 pm
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.

Re: Hollywood programs & commands cli/shell

Posted: Thu Jan 02, 2014 3:16 pm
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?

Re: Hollywood programs & commands cli/shell

Posted: Fri Jan 03, 2014 12:23 am
by djrikki
I am sorry I do not know what you are asking.

Re: Hollywood programs & commands cli/shell

Posted: Fri Jan 03, 2014 12:35 pm
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.

Re: Hollywood programs & commands cli/shell

Posted: Fri Jan 03, 2014 3:27 pm
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.

Re: Hollywood programs & commands cli/shell

Posted: Wed Sep 13, 2017 5:48 pm
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.