In Windows Explorer you can rate picture files with a 5 star system. I don't see this option in XYplorer. All I see is tags, labels, and comments. Does one exist and I just can't find it?
Thanks for your help.
Is there a picture rating system in XYplorer?
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Is there a picture rating system in XYplorer?
XYplorer and Windows Explorer use different tagging methods.
You can rate a picture in XY, but the rating won't be visible on WE.
--------
Rating in XY: right click the "Name" column header in details view. Select any of the "Extra" items from the menu, a new column with chosen name will be created. Right click that, choose Configure... and next set "Type" to Rating Stars. (Optionally set a relevant caption).
You can rate a picture in XY, but the rating won't be visible on WE.
--------
Rating in XY: right click the "Name" column header in details view. Select any of the "Extra" items from the menu, a new column with chosen name will be created. Right click that, choose Configure... and next set "Type" to Rating Stars. (Optionally set a relevant caption).
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
stebobibo
- Posts: 51
- Joined: 26 Sep 2014 21:25
Re: Is there a picture rating system in XYplorer?
Ok, I've done that. Now how do I actually rate them? Clicking in the ratings column doesn't do it, and I don't see any options for setting star ratings in the info pane.SammaySarkar wrote:Rating in XY: right click the "Name" column header in details view. Select any of the "Extra" items from the menu, a new column with chosen name will be created. Right click that, choose Configure... and next set "Type" to Rating Stars. (Optionally set a relevant caption).
Thanks for your help so far, and I hope you can answer these questions, too.
-
stebobibo
- Posts: 51
- Joined: 26 Sep 2014 21:25
Re: Is there a picture rating system in XYplorer?
Update: I just figured out how to rate them. You have to right click in the ratings column.
However, is this the only way to do it?
However, is this the only way to do it?
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Is there a picture rating system in XYplorer?
Yep.
Although you can, for example, set up a toolbar button that on click pops up the rating stars list, or even a keyboard shortcut to do the same.
Enter ::snippet; in the addressbar, a textbox will popup, paste the following code there and you'll have the button I spoke of.A bit of set up. See there's a line in there,If you're using the "Extra 2" column, you should change that line toand so on
Although you can, for example, set up a toolbar button that on click pops up the rating stars list, or even a keyboard shortcut to do the same.
Enter ::snippet; in the addressbar, a textbox will popup, paste the following code there and you'll have the button I spoke of.
Code: Select all
Snip: CTB 1
XYplorer 14.50.0204, 10/4/2014 10:12:01 PM
Action
NewUserButton
Name
Rate...
Icon
:favs
ScriptL
"_Initialize"
global $col = ex1;
if (<get countselected> == 0){ end 1; }
"rate <get countselected> items"
"&5 stars" global $r = '5'; sub "_rate";
"&4 stars" global $r = '4'; sub "_rate";
"&3 stars" global $r = '3'; sub "_rate";
"&2 stars" global $r = '2'; sub "_rate";
"&1 stars" global $r = '1'; sub "_rate";
"-"
"+1 &star" global $r ='+1'; sub "_rate";
"-1 st&ar" global $r ='-1'; sub "_rate";
"&0 stars" global $r = '0'; sub "_rate";
"_rate"
global $r, $col;
foreach ($i, get(SelectedItemsPathNames,"|",a)){
$s = tagitems($col,,$i); //obtain current rating
if ($r UnLikeI #){ $s = eval($s$r); }
else { $s = $r; }
if ($s > 5){ $s= 5; }
if ($s < 0){ $s= 0; }
if ($s == 0){ $s=''; }
tagitems($col,$s,$i);
}
ScriptR
FireClick
0Code: Select all
global $col = ex1Code: Select all
global $col = ex2Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
stebobibo
- Posts: 51
- Joined: 26 Sep 2014 21:25
Re: Is there a picture rating system in XYplorer?
Thanks a lot! You are brilliant!Yep.
Although you can, for example, set up a toolbar button that on click pops up the rating stars list, or even a keyboard shortcut to do the same.
How do I set up a shortcut for it? I know how to get to the shortcut customization panel. I just have no idea where to find the command I'm looking for or what it's even called.
-
bdeshi
- Posts: 4256
- Joined: 12 Mar 2014 17:27
- Location: Asteroid B-612
- Contact:
Re: Is there a picture rating system in XYplorer?
Ah, it's nothing.
KEYBOARD SHORTCUT:
> Right click the button just created, and choose "edit".
> Press the Edit btn beside the "On left click" box.
> Copy the whole text of the textbox that opens.
> Cancel out of all dialogs.
> Then from the main menu, choose User->Manage Commands.
> Select "Run script" category, and then press INSERT on keyboard (or "new" btn->"add new command")
> Notice the "Script" box at the bottom section. Press the edit btn beside it.
> Paste the text you'd copied earlier and press OK.
> Set a caption.
> Now press "Assign keyboard shortcut", choose one (you should probably check "On key up" too) and OK out.
That's it. The keyboard shortcut will display the same popup menu now.
------
BTW, there's an easier to manage method (for both the button and the UDC cmd).
Remember the text you copied from button editor?
Enter <xyscripts> in the addressbar (a new folder will open), and save that text as an xys file in that location (eg, ratingmenu.xys)
Now instead of duplicating lines of text, you just need one line in both the button's "on left click" box and the UDC item's "script" box:It has the same result. (And if you edit the xys file, the changes are reflected in both.)
KEYBOARD SHORTCUT:
> Right click the button just created, and choose "edit".
> Press the Edit btn beside the "On left click" box.
> Copy the whole text of the textbox that opens.
> Cancel out of all dialogs.
> Then from the main menu, choose User->Manage Commands.
> Select "Run script" category, and then press INSERT on keyboard (or "new" btn->"add new command")
> Notice the "Script" box at the bottom section. Press the edit btn beside it.
> Paste the text you'd copied earlier and press OK.
> Set a caption.
> Now press "Assign keyboard shortcut", choose one (you should probably check "On key up" too) and OK out.
That's it. The keyboard shortcut will display the same popup menu now.
------
BTW, there's an easier to manage method (for both the button and the UDC cmd).
Remember the text you copied from button editor?
Enter <xyscripts> in the addressbar (a new folder will open), and save that text as an xys file in that location (eg, ratingmenu.xys)
Now instead of duplicating lines of text, you just need one line in both the button's "on left click" box and the UDC item's "script" box:
Code: Select all
load "ratingmenu.xys";Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]
[ this user is asleep ]
-
stebobibo
- Posts: 51
- Joined: 26 Sep 2014 21:25
Re: Is there a picture rating system in XYplorer?
Thanks again, friend! You never cease to amaze.
It worked, but I'm having one issue with the shortkey I selected.
I chose to go with shift+R. However, using this shortkey with this command, a dialog box will pop up first, saying,
"A key popped up a menu, and then immediately triggered an item of that menu via accelerator. To show the menu now, release all keys and click OK."
After clicking Ok, the menu appears and does its job. I'm just wondering why this happens and is there an easy way to fix it. I think it might be because pressing "R" when the ratings menu is up will close it.
I've tried other shorkeys, and they work without this problem. However, I would like to use shift+R because its easy to remember; R standing for rating.
It worked, but I'm having one issue with the shortkey I selected.
I chose to go with shift+R. However, using this shortkey with this command, a dialog box will pop up first, saying,
"A key popped up a menu, and then immediately triggered an item of that menu via accelerator. To show the menu now, release all keys and click OK."
After clicking Ok, the menu appears and does its job. I'm just wondering why this happens and is there an easy way to fix it. I think it might be because pressing "R" when the ratings menu is up will close it.
I've tried other shorkeys, and they work without this problem. However, I would like to use shift+R because its easy to remember; R standing for rating.
-
highend
- Posts: 14950
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Is there a picture rating system in XYplorer?
Just tick [x] On KeyUp for your command in the Manage User-Defined Commands window...
One of my scripts helped you out? Please donate via Paypal
-
stebobibo
- Posts: 51
- Joined: 26 Sep 2014 21:25
Re: Is there a picture rating system in XYplorer?
Thanks again, man!
That worked. I guess I should have read your previous post more carefully.
XYplorer Beta Club