Hollywood programs & commands cli/shell

Find quick help here to get you started with Hollywood

Hollywood programs & commands cli/shell

Postby 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,
User avatar
Juan Carlos
 
Posts: 410
Joined: Mon Sep 06, 2010 1:02 pm
Location: Palencia

Re: Hollywood programs & commands cli/shell

Postby 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
djrikki
 
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Hollywood programs & commands cli/shell

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

Re: Hollywood programs & commands cli/shell

Postby 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?
User avatar
Juan Carlos
 
Posts: 410
Joined: Mon Sep 06, 2010 1:02 pm
Location: Palencia

Re: Hollywood programs & commands cli/shell

Postby 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
djrikki
 
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Hollywood programs & commands cli/shell

Postby 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
airsoftsoftwair
 
Posts: 2445
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany

Re: Hollywood programs & commands cli/shell

Postby 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
Juan Carlos
 
Posts: 410
Joined: Mon Sep 06, 2010 1:02 pm
Location: Palencia

Re: Hollywood programs & commands cli/shell

Postby 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.
User avatar
r-tea
 
Posts: 59
Joined: Wed Feb 17, 2016 12:48 am
Location: Zdzieszowice, Poland


Return to Newbie questions

Who is online

Users browsing this forum: No registered users and 1 guest