Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-04-2004, 02:51 AM
Member
 
Join Date: Sep 2003
Posts: 95
Default Passing command line parameters to a SWFKit exe?

Oops, didn't see the link to the file in that other thread.... will try it out now....

G.



For example, I wish to create a shortcut to a SWFKit exe:

// Create new shortcut
shortcut = new Shortcut(TESTDIRECTORY + "\\TEST.lnk");

// Path to shortcut including command line parameters
shortcut.targetPath = "TEST.exe + PARAMETERS";

// Other stuff....
shortcut.description = "TEST";
shortcut.windowStyle = 9;
shortcut.save();

Then when they double-click the shortcut, have the exe read the PARAMETERS and act accordingly?

I read:

http://www.swfkit.com/forum/index.ph...=msg173#msg173

Could I possibly get the cmdline object?

Cheers,

G.
Reply With Quote
  #2 (permalink)  
Old 03-05-2004, 08:23 AM
Junior Member
 
Join Date: Feb 2004
Posts: 14
Default Re:Passing command line parameters to a SWFKit exe?

Please do like this:

shortcut.targetPath = "TEST.exe";
shortcut.arguments = "PARAMETERS";
Reply With Quote
  #3 (permalink)  
Old 03-05-2004, 08:36 AM
Member
 
Join Date: Jun 2003
Posts: 39
Default Re:Passing command line parameters to a SWFKit exe?

"I wish to create a shortcut to a SWFKit exe"

How you you get a SWFKit app to accept (and use) the parameters passed in ???
Reply With Quote
  #4 (permalink)  
Old 03-05-2004, 08:52 AM
Junior Member
 
Join Date: Feb 2004
Posts: 14
Default Re:Passing command line parameters to a SWFKit exe?

We've developed a command line ActiveX object. And in SWFKit 2, you can get the command line like this

Application.cmdLine

(Don't try it in SWFKit 1.1, it will cause error in preview mode, it doesn't work with the UI of SWFKit 1)
Reply With Quote
  #5 (permalink)  
Old 03-05-2004, 01:19 PM
RJS RJS is offline
Member
 
Join Date: Sep 2003
Posts: 56
Default Re:Passing command line parameters to a SWFKit exe?

So ... you can get the command line in SWFKit 2. Would be very useful if version 2 actually existed! Prove it - release it.
Reply With Quote
  #6 (permalink)  
Old 03-09-2004, 09:53 PM
Member
 
Join Date: Sep 2003
Posts: 95
Default Re:Passing command line parameters to a SWFKit exe?

Sweet.

Thanks nionio, I can see what I'm passing to the application now ;D

After parsing the command line string and looking for the parameters, I can make my application behave differently.

Cheers,

G.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:53 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.