Multi Commander > Support and Feedback

Filter + Custom commands broken?

<< < (2/3) > >>

Ulfhednar:
so should

--- Code: ---MC.Explorer.Selection.Select FILTER="*.zip;*.rar"
MC.Filesystem.Delete
--- End code ---
or

--- Code: ---MC.Explorer.Selection.Select FILTER="*.zip;*.rar"MC.Filesystem.Delete
--- End code ---
work?

Sorry I'm double checking as I'm wondering about syntax now.

Jungle:
AFAIK, custom commands support only one command. So to perform multiple action you probably should use MultiScript

Mathias (Author):

--- Quote from: Ulfhednar on May 13, 2016, 13:15:25 ---so should

--- Code: ---MC.Explorer.Selection.Select FILTER="*.zip;*.rar"
MC.Filesystem.Delete
--- End code ---
or

--- Code: ---MC.Explorer.Selection.Select FILTER="*.zip;*.rar"MC.Filesystem.Delete
--- End code ---
work?

Sorry I'm double checking as I'm wondering about syntax now.

--- End quote ---

Wrong..
Don't use ";" use space..


--- Code: ---MC.Explorer.Selection.Select FILTER="*.zip *.rar"
MC.Filesystem.Delete
--- End code ---

And if you want to do multiple commands, the command type must be MultiScript as Jungle said.

Ulfhednar:
Thanks guys.
I had tried with & without ;
As there have been a lot of additions to MultiScript in the last few months, I wanted to be sure that I wasn't missing something related to the script & custom commands.

I intend to try & put together a script at some point. 
To what degree must MultiScript, Custom Commands & calling external programs, all be 100% discrete.  (for making a button)
IIRC there is some leeway. 
I will experiment & create a few headaches...  :P

Mathias (Author):

--- Quote from: Ulfhednar on May 14, 2016, 11:00:57 ---To what degree must MultiScript, Custom Commands & calling external programs, all be 100% discrete.  (for making a button)
IIRC there is some leeway. 
I will experiment & create a few headaches...  :P

--- End quote ---
Notes ure what yo mean..

But all script type are different, for different uses.
External is just for launching an external program easy. You can do that with CC too, But it require more

CC command connect to command you see in the UI or that you can invoke from the UI as the user.  but you can often provide different default options and such.
CC command acts like it is the user.  They are made to be simple, and only one line per command is supported. (Because depending on command you don't know if you can run another command directly after it.. since the command is sent via the UI )

MultiScript are the more advanced, where you can have variables, define functions and such, loops and such. You can create whole new functions with MScript,
It have no idea of the UI. it connects the core function below the UI. It can be run in the background,
But it can call CC commands.  but the CC commands are run isolated.  Normal MScript function can return data and they know about variables and such..  CC commands don't.
When a CC command is found in the MScript it will just translate the entire row. and then send it to the CC engine, and then move on.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version