Suggestion: add "right-click" search

Discussion & Support for xplorer² professional

Moderators: fgagnon, nikos, Site Mods

User avatar
nikos
Site Admin
Site Admin
Posts: 16366
Joined: 2002 Feb 07, 15:57
Location: UK

Post by nikos »

but where is the kitchen sink?
Kilmatead
Platinum Member
Platinum Member
Posts: 4856
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

What, you don't like my superfluous icons?
nikos wrote:but where is the kitchen sink?
Somebody wanted £100 quid for it, so I reckoned if I held it back long enough, they'd come a beggin' to me door after awhile.  (Just taking a leaf from your own theory of weight-vs-optionality...) :D

Originally it did have a Death Ray option, but after accidentally nuking all the servers in Australia, I decided that should be limited to the over-18's Porn-Only Specialty version.  :roll:
User avatar
ZoNi
Silver Member
Silver Member
Posts: 260
Joined: 2002 Nov 03, 14:24
Location: Serbia

Post by ZoNi »

Wow, Kilmatead, this is VERY, VERY nice :)

Tnx...

However, I have questions regarding some search ebgines...

For example, if I search for subtitles for a movie called TEST on all4divx.com, this is URL:
http://www.all4divx.com/subtitles/TEST/ ... +Serbian/1

If I add that URL, and change TEST with q= I get only error.

Similar, for epguides.com search URL is:
https://www.google.com/search?hl=en&q=a ... tnG=Search

What should I write in .ini?
Kilmatead
Platinum Member
Platinum Member
Posts: 4856
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

Bugger, I knew someone was going to encounter that.  :oops:

Download the 1.0.0.1 version and that will solve it.

The ini definitions now must include the literal token "$File$" wherever you need the search text inserted, so you can safely add any extra protocols in the line you may want, and you should get the expected result.

Sorry about that.
User avatar
ZoNi
Silver Member
Silver Member
Posts: 260
Joined: 2002 Nov 03, 14:24
Location: Serbia

Post by ZoNi »

Greeeeeaaat!  :P

Now it seems OK, thank you! :)

EDIT: since this works in any file manager, I will add it to my freeware blog, if that is OK with you?
Kilmatead
Platinum Member
Platinum Member
Posts: 4856
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

ZoNi wrote:since this works in any file manager, I will add it to my freeware blog, if that is OK with you?
There is a certain irony to this development rag - you knock yourself out doing large projects which require all sorts of effort and nobody even farts in your direction, but it's the little things you do without even breaking a sweat that people decide they like.  :shrug:

Like when women say, "How sweet of you!", you inevitably think to yourself, "Wait, what did I just do?" - because in your mind you were just being normal - but if you take that same woman out to dinner on the Titanic, go abseiling down the Cliffs of Dover, and propose marriage atop the Eiffel Tower, she just shrugs and gives you a look that says, "Can't you do better?"

You can't win for losing. :wink:

But to answer your question - yeah, you may do anything you like with it.  I don't believe in licenses or copyrights, so there are no limitations - I wouldn't even care if someone else claimed to have written the code, as I never put my moniker on these things.  I'd make a very bad capitalist, I guess. :D
wperkins99
Bronze Member
Bronze Member
Posts: 106
Joined: 2004 Jul 11, 14:55

Post by wperkins99 »

Kilmatead wrote:  The context menu itself may only be used in Win7
BUMMER. (You have left us late adopters behind...)
Kilmatead
Platinum Member
Platinum Member
Posts: 4856
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

Sorry about that - the OP wanted a cascading submenu, and that is very simple to do in Win7; outdated OS's require a whole lot more jumping through hoops (DLL's, etc) to achieve the same thing.

You may, if you wish, simply create multiple toolbar buttons to achieve the same functionality, at the expense of real-estate, of course.

If you really wanted to have some fun, the same effect of a cascading submenu can be achieved via the FileMenuTools utility, but you have to build it "manually" yourself - yet the end result would be the same, visually.
User avatar
ZoNi
Silver Member
Silver Member
Posts: 260
Joined: 2002 Nov 03, 14:24
Location: Serbia

Post by ZoNi »

One question: do you have any idea why this icon is not visible in your program?
Kilmatead
Platinum Member
Platinum Member
Posts: 4856
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

It seems to work fine for me - did you make sure it has the same name as the INI definition, and for changes like that to take effect, you need to remove and recreate the context menu (just double-click the EXE once to remove, then again to create).
User avatar
ZoNi
Silver Member
Silver Member
Posts: 260
Joined: 2002 Nov 03, 14:24
Location: Serbia

Post by ZoNi »

Kilmatead wrote:for changes like that to take effect, you need to remove and recreate the context menu (just double-click the EXE once to remove, then again to create).
Ok, this I haven't done and it is OK now! Thank you :)
User avatar
ZoNi
Silver Member
Silver Member
Posts: 260
Joined: 2002 Nov 03, 14:24
Location: Serbia

Post by ZoNi »

And here is one question more: is it possible to add option to search only for selected part of a filename?

If it is easy to add that, it would be cool; if not, forget this question :)

EDIT: btw, 10 search engines are more than enough, but I wonder, why is it fixed at that number? Why not 5, 20 or 50? Is that restriction by Microsoft or AutoIt?
Kilmatead
Platinum Member
Platinum Member
Posts: 4856
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

What do you mean by "selected part" - you mean mimicking x2's tokens like $B, $E, D, and so on?  Or some kind of name-specific filtering?

Give me an example of what you want, and how it might work.

It's fixed at 10 "because I felt like it".  There's a lot to be said for being an arbitrary dictator. :D  (A little experiment just showed that Windows actually places a limit of 17 for this type of context menu.  I might raise it to that just for fun.)

Edit: Interestingly, while Windows allows 17 items to be displayed in the menu, it only allows the first 16 to be selectable - the 17th is ignored.  Weird.  So, the de facto limit is 16, imposed by Windows itself.
Last edited by Kilmatead on 2011 Oct 30, 10:44, edited 1 time in total.
User avatar
ZoNi
Silver Member
Silver Member
Posts: 260
Joined: 2002 Nov 03, 14:24
Location: Serbia

Post by ZoNi »

Selected part... so, I have file called SomeInterestingFile.ext.

Now, I press F2 (rename), and filename becomes highlighted. Than, I use Shift+Arrows to select only InterestingFile - which is I want to search for :)

If that is complicated, it is not that important!

Btw, now I see that in Icons folder there is sub-folder called "1033" with this two files: WkGL90.dll & WkImgL90.dll. Have I put them somehow by mistake? I don't recall they were there.
Kilmatead
Platinum Member
Platinum Member
Posts: 4856
Joined: 2008 Sep 30, 06:52
Location: Baile Átha Cliath

Post by Kilmatead »

No, sorry, that's not possible - I have no control over that sort of specific highlighting from x2 - the script can only manipulate what it's given from Windows itself.  Considering that the search name just appears in your browser anyway, you'd have to edit it from there.

Those items in your Icons folder are entirely your fault - this script doesn't create, move, or modify any files at all. :shrug: