5 Replies Last post: Dec 3, 2005 3:47 PM by Caleb  
orlando kelly Bronze 75 posts since
Oct 7, 2005
Currently Being Moderated

Nov 18, 2005 2:23 PM

Command line arguments to start spark

Can we use an argument to start spark so that

 

a) we can pass the username and password to login

b) we can start a chat window with a specific user

 

Regards

 

Orlando

Derek DeMoro Jiver 1,018 posts since
Jan 17, 2004
Currently Being Moderated
Nov 18, 2005 3:07 PM in response to: orlando kelly
Re: Command line arguments to start spark

Hi Ollyando,

   At the moment you cannot, but that is a great idea.  I''ll update the framework so your own plugin can take advantage of all arguments passed into the system. SPARK-8

Bronze 135 posts since
Sep 7, 2005
Currently Being Moderated
Dec 1, 2005 8:06 PM in response to: Derek DeMoro
Re: Command line arguments to start spark

Is there a description of the command line arguments now available in Spark 1.0.1?

Derek DeMoro Jiver 1,018 posts since
Jan 17, 2004
Currently Being Moderated
Dec 1, 2005 9:55 PM in response to: Caleb
Re: Command line arguments to start spark

So I used the exact names as listed.

 

1) username

2) password

3) server

4) start_chat_jid

5) start_chat_muc

 

To make this easier to handle in a client side way, I have it where the app takes a HttpParam style of argument.

 

So...

Spark.exe username=foo&password=test&server=jivesoftware.com&start_chat_jid=test@j ivesoftware.com&start_chat_muc=test@conference.jivesoftware.com

 

This way, you can specify one, two or all, or none :). This has been tested and is good to go for the 1.0.1 release.

Bronze 135 posts since
Sep 7, 2005
Currently Being Moderated
Dec 3, 2005 2:43 PM in response to: Derek DeMoro
Re: Command line arguments to start spark

I have tried using the command line arguements, and I can''t seem to get them to work.

 

I open a command prompt and type:

 

Spark.exe username=user&password=pwd&server=foo.bar

 

I get: ''password'' is not recognized as an internal or external command, operable program or batch file. ''server'' is not recognized as an internal or external command,

operable program or batch file.

 

But if I just do Spark.exe username=user

 

Spark starts with the username textbox filled with "user", as it should.

 

Any ideas what I am doing wrong?

Bronze 135 posts since
Sep 7, 2005
Currently Being Moderated
Dec 3, 2005 3:47 PM in response to: Caleb
Re: Command line arguments to start spark

Nevermind, the arguments work when creating a shortcut and in the registry, which is all that I am interested in. Thanks.

More Like This

  • Retrieving data ...