How to on How to Use User Commands

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

RickyF
Silver Member
Silver Member
Posts: 211
Joined: 2004 Dec 12, 16:31
Location: CT, USA

How to on How to Use User Commands

Post by RickyF »

Hi all.
Let me begin by saying I am a very happy user of xplorer2 pro. It is a wonderful application.

I am trying to learn how to use the "User Commands" feature. Specifically I want to create a user command that sends "Ctrl-F4" to the file pane. I then plan on putting this command on the toolbar so that I will be able to click an object to close a tab. (Actually I expect to see a small "x" to do this but it doesn't exist, so I am trying this workaround, but I haven't figured out how to use this feature.)

Thanks in advance.
User avatar
nikos
Site Admin
Site Admin
Posts: 16401
Joined: 2002 Feb 07, 15:57
Location: UK

Post by nikos »

user commands refer to external programs you can invoke from x2, optionally passing the currently selected file(s) as arguments

but if closing tabs is what you're after, there is a little X for that purpose on the far right of the tab strip
RickyF
Silver Member
Silver Member
Posts: 211
Joined: 2004 Dec 12, 16:31
Location: CT, USA

Post by RickyF »

Thanks.

Of course after wasting time trying to invent a workaround the solution was there all the time.

I have since switched the tab bar to the top and sure enough the little 'x' is staring me in the right eye.

However, I still could use a little "How to" on "User Commands" as I find the information I can glean from the PDF help file and the "info" button on "user command properties" does not enlighten me at all. I have a feeling I could make use of this if only I had a brain!
User avatar
nikos
Site Admin
Site Admin
Posts: 16401
Joined: 2002 Feb 07, 15:57
Location: UK

Post by nikos »

user commands are just programs you want to call from xplorer2
my favorite example is the windiff command that compares contents of 2 (similar) files. You can call it from x2 by creating a user command. In fact it is already installed for you as a demo

to be frank i couldn't even start explaining this topic, it's huge!
you'll find a good intro in the quickstart guide (search for "Automation of DOS (and windows) commands")
Starsurfer
Bronze Member
Bronze Member
Posts: 109
Joined: 2002 Feb 23, 23:51
Location: Atlantis

Post by Starsurfer »

RickyF,
User commands are the dos ($ prefix) & windows (> prefix) commands that one uses. - the ones that u use repeatedly can be set to a
keyboard shortcut or toolbar button

for example if i type
> msconfig
..in the address bar i would get the system configuration utility.
i could set this to a toolbar button & click it for the same effect.

or u could start apps like your browser etc

similarly u could use dos commands using '$' for other things.
All the $-tokens can be used while composing these commands

kick ass..!  :P

-
RickyF
Silver Member
Silver Member
Posts: 211
Joined: 2004 Dec 12, 16:31
Location: CT, USA

Post by RickyF »

Thanks, that helps in figuring out how this feature can be used.