Page 1 of 2

Show shell context menu on favourite folders and files

Posted: 29 Jun 2008 07:25
by arty2k
Selecting a folder that has been added to Favorites, and right-clicking on on menu item will display the popup menu normally shown for file and folders.

Posted: 29 Jun 2008 07:52
by j_c_hallgren
Hi and wecome to the XY forums!

As to your wish...I would highly suspect that there are multiple technical reasons why this might not be possible, based on what I've seen here before, but only Don can confirm/deny this, which I'm sure he will soon.

Also, until the answer to that issue is determined, having a poll is not yet a valid option, IMHO.

Re: Show shell context menu on favourite folders and files

Posted: 29 Jun 2008 08:52
by admin
arty2k wrote:Selecting a folder that has been added to Favorites, and right-clicking on on menu item will display the popup menu normally shown for file and folders.
Hi! Context menus for menu items? Have you seen this anywhere?

Re: Show shell context menu on favourite folders and files

Posted: 29 Jun 2008 14:00
by jacky
admin wrote:Context menus for menu items? Have you seen this anywhere?
Yeah, I think both Maxthon2 and Firefox3 for example allow a right-click on a bookmark/favorite (menu) item to pop up a context menu about it. Not sure either of them use a standard menubar though for their main menus... I don't think it's a standard thing.

So for favorites it might not be easily doable, but on Catalog it might be more possible, since I guess there could be a new item "Item's context menu..." for files/folders.

Re: Show shell context menu on favourite folders and files

Posted: 29 Jun 2008 14:11
by admin
jacky wrote:
admin wrote:Context menus for menu items? Have you seen this anywhere?
Yeah, I think both Maxthon2 and Firefox3 for example allow a right-click on a bookmark/favorite (menu) item to pop up a context menu about it. Not sure either of them use a standard menubar though for their main menus... I don't think it's a standard thing.

So for favorites it might not be easily doable, but on Catalog it might be more possible, since I guess there could be a new item "Item's context menu..." for files/folders.
True, even firefox2 can do it. But as you said, the standard menu bar cannot do this trick.

In Catalog. Yes, actually I have planned this anyway. Later...

The Windows START menu...

Posted: 29 Jun 2008 17:23
by arty2k
The windows Start menu is an example of a menu with context menu support. I am not sure if you can create an instance of the classes though.

As for the standard menubar-I believe it should not be an issue to catch a right-click on the menuitem and dismiss the menu(or freeze application thread) while a system context menu is shown for the target object.

This reminds me of GUI inconsistancy-mostly because you do show shell context menu for files and folders. You see, in shell context menus, you can select a menuitem with either a right or left click, but the context menu for the listview [views, sort by...], does not support selecting meuitems with a right-click.

Posted: 29 Jun 2008 17:30
by arty2k
j_c_hallgren wrote:Hi and wecome to the XY forums!

As to your wish...I would highly suspect that there are multiple technical reasons why this might not be possible, based on what I've seen here before, but only Don can confirm/deny this, which I'm sure he will soon.

Also, until the answer to that issue is determined, having a poll is not yet a valid option, IMHO.
Thank you, it is good to be here.

A poll, not valid? it is the easiest way to determine interest in a feature from those who are "reply-shy" or those that simply want to say "yes, I wish for that too". Besides, I cannot remove the poll, I tried; so I can't please you either way. But thanks for the we[l]come. (I have a wireless keyboard too, which inexplicably drops the keystrokes "/" and BKSP-to name a few.

HEHE, maybe I should post a suggestion for a spell checker on filenames? LOL

Posted: 29 Jun 2008 20:26
by j_c_hallgren
arty2k wrote:A poll, not valid? it is the easiest way to determine interest in a feature from those who are "reply-shy" or those that simply want to say "yes, I wish for that too".
I was only saying that it was my guess that a poll was a bit premature as your wish appeared to be something that might not be possible...

And if you take a look at the history of this sub-forum, you'll notice that polls are rarely used here...it's not often that it's needed, as we here tend to not be shy...and also generally have no problems with "me too" type posts...because who it is that does the "me too" has had an impact on occasion...if jacky says "me too", Don may likely weigh that a bit more than a person with a handful of posts...

Anyway, take a look around, get aquainted with us regulars, and help us make XY even better!

Addendum: A search shows only a handful of poll threads since forum started so that confirms the rarity.

Posted: 30 Jun 2008 18:07
by arty2k
I think XY is awesome. Whenever I have to go back to using (Server 2008) Explorer, I cringe-the columns are always truncated (no autosizing).

Something I do like in Explorer, is the optional check-box for multiple non-continguous objects in listview. That would be something I might request, but to enable that functionality would be very difficult. (clicking on the checkbox simulates holding the CTRL key down-thus toggling the selected state of another FSO.

Yes, I'm a developer as well, and I can think of a few things that I'd like to integrate as well. Since XY is not open source, I'm sure pseudocode with required Win32API when necessary will be the easiest way to get the features I'd like.

... I digress, sorry.
Rather than start a new thread, I'll add these requests here because they may not demand a great deal of additional coding on the part of the developers...

There is a really cool feature in XYplorer called "Web Preview" where I would also like to have a context menu item added to:
To Clipboard > Item Address [CTRL+L]
(I picked CTRL+L because that keyboard combination will prompt to open an address in both IE & FF)

Sometimes I need to know if a file in one folder is the same as a file in another folder, and in this instance, I don't need to see the dates or Len, but would rather see MD5 or CRC32 or at the very least CRC of files. (yes, it would be cool to be able to generate recursive svc dir dumps, but that is maybe a job for another tool). Webservers generate a checksum called an ETag that is probably a better type of checksum to use for web developers)
//C# Bad Sample code for creating an ETag(MD5) checksum tag
private string GenerateHash(Stream objStream, long lBegin, long lEnd)
{
byte[] buffer = new byte[Convert.ToInt32(lEnd) + 1];
objStream.Read(buffer, Convert.ToInt32(lBegin), Convert.ToInt32((long)(lEnd - lBegin)) + 1);
// Instantiate an MD5 Provider object
MD5CryptoServiceProvider Md5 = new MD5CryptoServiceProvider();
// Compute the hash value from the source and convert it to String format for return
return Convert.ToBase64String(Md5.ComputeHash(buffer));
}


Thanks very, very much for reading this post.
_Art

Posted: 30 Jun 2008 18:28
by jacky
arty2k wrote:Sometimes I need to know if a file in one folder is the same as a file in another folder
You know, to do so you could simply copy (Ctrl+C) the first file, then select the second one and use menu "Edit|Compare|Compare Current File With File On Clipboard"

XY will tell you whether or not the files are the same, based on sizes first, and if sizes are identical based on their actual content. (Note that it only works for files < 2 147 483 647 bytes)

Posted: 30 Jun 2008 18:45
by j_c_hallgren
arty2k wrote:I think XY is awesome.
:D Great! So do we!!
arty2k wrote:... I digress, sorry.
Rather than start a new thread, I'll add these requests here because they may not demand a great deal of additional coding on the part of the developers...
Don't worry about starting a new thread, especially when it's totally unrelated to present topic, because it makes locating that thread SO much easier in months to come (if needed)...yes, we've had threads that have diverged quite greatly from original, but it can make a search for it difficult...so feel free (IMHO) to create separate threads as needed, since it may also encourage infrequent posters to contribute to them due to topic title catching their attention.

Also, you say "developers"...there is only one for XY and that is Don! We are simply power users who help here in the forum, the wiki, and the blog... 8)

Posted: 30 Jun 2008 19:04
by arty2k
jacky wrote:
arty2k wrote:Sometimes I need to know if a file in one folder is the same as a file in another folder
You know, to do so you could simply copy (Ctrl+C) the first file, then select the second one and use menu "Edit|Compare|Compare Current File With File On Clipboard"

XY will tell you whether or not the files are the same, based on sizes first, and if sizes are identical based on their actual content. (Note that it only works for files < 2 147 483 647 bytes)
Hey!, that is cool. However, when comparing files to those on a remote web server, viewing the ETag and comparing that to a generated ETag for a local file will go a long way to effective remote comparisons without using WinHTTrack.

BTW, "Edit > Compare > Compare Current File With File On Clipboard" is not a valid menu item. Or, maybe I'm just too tired to see that menu option.

Posted: 30 Jun 2008 19:09
by j_c_hallgren
arty2k wrote:BTW, "Edit > Compare > Compare Current File With File On Clipboard" is not a valid menu item. Or, maybe I'm just too tired to see that menu option.
That was introduced in 7.20.18 so if you're not on that or greater, you'd not see it...there was a new "official" 7.30 as of today, BTW.

An alternate way to review when changes were made is via my blog at http://xyplorer.blogspot.com which I try to keep as current as possible...you can also subscribe to email updates from it.

We (XY fanatics) tend to run with latest beta or close to it, so sometimes we refer to things that are in those.

And I presume that you are also happy with the speed of repies here? We pride ourselves on quick answers! 8)

Posted: 30 Jun 2008 19:41
by arty2k
Yes, replies are fast.

Posted: 30 Jun 2008 19:50
by admin
jacky wrote:
arty2k wrote:Sometimes I need to know if a file in one folder is the same as a file in another folder
You know, to do so you could simply copy (Ctrl+C) the first file, then select the second one and use menu "Edit|Compare|Compare Current File With File On Clipboard"

XY will tell you whether or not the files are the same, based on sizes first, and if sizes are identical based on their actual content. (Note that it only works for files < 2 147 483 647 bytes)
Yes, and XY's comparison is of course much faster than calculating any sort of checksum, let alone doing this for each file in a list (that would be real slooooooooow...).