Ross wrote:Do I have to create manually a 'process list' to be parsed or something?
No, as stated, simply replace $S with @$> in the user-command definition. The "@"-sign prefix is WinRAR's command-line directive to open a listfile (a text file containing a list of object-paths on each line). The '$>' token is x2's means of outputting such a listfile (it's created in your temp folder as 'x2tmpList.txt', and that filename is automatically passed to the target programme as part of the argument). WinRAR will automatically start munching its way through the text file quite happily just as if you supplied the files as separate parameters. This is particularly useful when passing selections from a scrap-container, where the contents do not all share the same paths and $S would obviously fail miserably (which is why $A is more often the better choice, though as that supplies full paths as separate objects, the command-line character limit is used up quickly; using $> eliminates this, as technically you could send innumerable objects without penalty). Obviously this only works with utilities which are able to process listfiles - not all can, and not all in the same way ('@' is particular to WinRAR only).
Ironically this token is documented in the PDF manual (page 289), though it is
still not included in the popup quick-reference of user-command tokens ("info" button). This makes even dozy kittens very sad, as it was one of
this dozy kitten's better ideas in the first furry place.
Regarding your other anomaly, I suggested looking at any "tray" applications/helpers because sometimes they may accidentally send an extra code through the window buffer when detecting explorer-listviews which can interfere with the last "focused" object, possibly toggling it (how else to explain a single unpredictable missing object?). This is only a guess, as obviously the gremlin is local to your computer (you
do seem to be having an unfortunate month of late regarding compu-stuff, aren't you?
).
When in doubt, deactivate
everything in your tray menu and see if it still reoccurs (and I do mean everything - even things you "trust").
Using the @$> method in your user-commands "may" work, but that would only be masking whatever the underlying broader cause of the problem may be, not actually solving it.