--- In [email protected], "konfes99" <konfe...@...> wrote:
>
> Hi everybody
> 
> Recently I started using PowerPro and I've made a bar which consists 
> of my frequently used folders.
> - Left click is for launching a folder
> - Middle click will be for "copy selected files to that folder"
> - Right click will be for "cut selected files to that folder"
> 
> Please forgive me but I can't find a command (or create one) which 
> will copy/cut currently selected file/s to "that" folder.
> 
> Much thanks to Bruce for creating PowerPro.
>

I think what you are really asking is how to get the selected files
into a list you can act on.

Here's one idea: Add a button that will capture a list of the names of
dragged files. The mid and right clicks for that button could
file.delete those files and/or clear variable that holds the list.

The other buttons on the bar could have various folder names in their
id's or labels, and all otherwise be clones for Left, Mid and Right
actions. Left would show the folder, Mid and Right would use file.move
and file.copy respectively to move or copy each of the files in the
previously captured list to that button's folder.

All the actions would run functions from a file-based script you would
write. The special argument "_file_" can be accessed and saved in a
variable when files are dragged to the first button. You will want it
to be a multiline string (which requires the Drag item in
Advanced|Setup|Other to be unchecked). Dragging files to a button runs
its Left Command, so it would be difficult to use that in conjunction
with Middle and Right actions except by using a previously captured list.

To get the relevant folder from the id for the other buttons when
clicked you could use:
var=cl.getid(cl.getlastbar(), cl.getlastpressed(getlastbar))

if you prefer to put the whole folder name into the label, use
cl.getlabel instead of cl.getid.

I created such a bar and script, so if you want a canned solution let
me know.

Regards,
Sheri

Reply via email to