|
|||
|
Is it possible to read in variables passed in on the command line when I start my .exe
ie I have made an .exe but I would like to pass in a variable of an external file I wish it to read in.... this file varies each time so ideally i would like to be able to use: movie.exe file=asdouhasoduha or something similar. Is this possible? |
|
|||
|
SWFKit treat the first argument not beginning with the slash('/') as the main movie:
Code:
movie.exe 1.swf Code:
movie.exe /file=asdouhasoduha Code:
var cmdl = new ActiveXObject("CMDLINE.Commandline");
var clear_flag = false;
if (cmdl == null)
{
var object = getAdditionalFile("objects\\cmdline.dll");
ActiveXObject.register(object);
cmdl = new ActiveXObject("CMDLINE.Commandline");
clear_flag = true;
}
Dialogs.msgBox(cmdl.cmdline);
var wnd = getMainWnd();
wnd.onClose = function()
{
if (clear_flag)
{
var object = getAdditionalFile("objects\\cmdline.dll");
ActiveXObject.unregister(object);
}
}
|
|
|||
|
???
i've tried the code above.... and the result4 "Dialogs.msgBox(cmdl.cmdline); " is....undefined * * what ever i try: movie.exe /smvar=toto movie.exe \\smvar=toto movie.exe smvar=toto ./. :-X i launch one exe from an another, and have to give some parameters to the second. Does it 'cause i use the trial, what ever i put for /show_flags / , (shell.run method, 0 >> 11) *it allways open a new window ? ./. How can i know all the native dll (ie: to use as a new object in FFish... ) that is in swfkit ?
__________________
http://www.alyze.com - http://www.ecomzone.net - http://www.alisook.com -http://www.madcha.com - http://www.i-multimedia.fr - |
|
|||
|
hi topcmm,
i tried you code with swfkit 1.0... but it doesnt work out... .do you have any solution to that version? coz m still using swfkit 1.0. would you plz solve this problem? regards.
__________________
SWFBaz Preview [October 2006] http://www.SWFBaz.com |
|
|||
|
Ouppps !!
Didn't get the last line : ""cmdline.dll" have been sent to your mailbox" .... ![]() is there a way to have it too ?
__________________
http://www.alyze.com - http://www.ecomzone.net - http://www.alisook.com -http://www.madcha.com - http://www.i-multimedia.fr - |
|
|||
|
|
|
|||
|
TKs Daniel
. . Don't worry too much about all my qs. i'm just a curius guy...not in the aim to make another swfkit (we're not dealing on the same highway, and this one is just too good) but only to push it out of its limits. Even if some pitbull doesn't understand it... . I wish i can write down english the same way i do in french to tell you some more things that can (possibly)make swfkit better and better (tell all those people to come to a french forum and try to do the same.... :-/ , ...no matter it's not important...) but u can improve swfkit by yourself.... . . A FRENCH guy that love french patatoes... But this is a another question. But please...not use the name of God in what you say !
__________________
http://www.alyze.com - http://www.ecomzone.net - http://www.alisook.com -http://www.madcha.com - http://www.i-multimedia.fr - |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|