Go Back   FlashFXP Forums > >

Project: FlashFXP Bug Reports Ticket Tools
ID: 1005 Category: FlashFXP Bug
Title: "switch" custom command not working properly Status: Closed
Severity: Minor Version: 5.0.0

Junior Member
VASSILI
01-12-2015, 03:17 PM
"switch" custom command not working properly

i've made a custom command .. accessed by CTRL + SHIFT + O

/window
/switch
site undupe %f

i am in FXP mode
and currently the LEFT PANE is activated

file1 is highlighted in the LEFT PANE
file2 is highlighted in the RIGHT PANE
file3 is highlighted in the RIGHT PANE
file4 is highlighted in the RIGHT PANE

when issue my custom command this is the result
[L] [CMD] /window
[L] [CMD] /switch
[R] site undupe file2
[R] 200- Unduped: file2
[R] 200-
[R] 200- 1 dupes deleted.
[R] 200 Command Successful.
[R] site undupe file3
[R] 200 Command Successful.
[R] site undupe file3
[R] 200 Command Successful.
[R] site undupe file4
[R] 200- Unduped: file4
[R] 200-
[R] 200 Command Successful.

BUT i wanted file1 unduped

if NO files are highlighted in the Right Pane
the result is
[L] [CMD] /window
[L] [CMD] /switch

FlashFXP v5 b3801
Windows XP pro
FlashFXP Developer
bigstar
01-13-2015, 01:41 PM
Re: "switch" custom command not working properly

Quote:
BUT i wanted file1 unduped
Did you want file1 unduped on left or right side?

If the left side then omitting the /switch should provide the result you're looking for.
Junior Member
VASSILI
01-13-2015, 02:04 PM
Re: "switch" custom command not working properly

Yes i wanted file1 unduped on the right side
FlashFXP Developer
bigstar
01-14-2015, 08:28 AM
Re: "switch" custom command not working properly

You'll need to do something like this

This will work in FlashFXP v5.0.0.3801 and up.

Code:
{
/set @f@ %f
/switch
site undupe @f@
/switch
}
The code above works by grouping the commands on each selected item.

/set @f@ %f
Will set the variable @f@ to %f which is the current item in the active browser (.i.e. left side).
/switch
Switches to the opposite side (i.e. right side)
site undupe @f@
Sends the command to the right side.
/switch
Switches back to the original side (.i.e. left side)

This command block is then repeated for each selected item.

I noticed that the /window command doesn't work properly when used with the /switch command, only commands that are sent to the active window are logged. I am changing this behavior in the next build to include commands from both sides when /switch is used.

I selected files named 1,2,3,4,5 and the result in the status window looks like this.
Code:
[L] [CMD] /set @f@ 1
[L] [CMD] /switch
[R] site undupe 1
[R] 200 Command Successful.
[R] [CMD] /switch
[L] [CMD] /set @f@ 2
[L] [CMD] /switch
[R] site undupe 2
[R] 200 Command Successful.
[R] [CMD] /switch
[L] [CMD] /set @f@ 3
[L] [CMD] /switch
[R] site undupe 3
[R] 200 Command Successful.
[R] [CMD] /switch
[L] [CMD] /set @f@ 4
[L] [CMD] /switch
[R] site undupe 4
[R] 200 Command Successful.
[R] [CMD] /switch
[L] [CMD] /set @f@ 5
[L] [CMD] /switch
[R] site undupe 5
[R] 200 Command Successful.
[R] [CMD] /switch
Junior Member
VASSILI
01-14-2015, 03:57 PM
Re: "switch" custom command not working properly

works beautifully ... thank you
Ticket Tools
Subscribe to this Ticket


Posting Rules
You may not post new tickets

Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -5. The time now is 06:02 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)