Possible to add Google/Firefox Search to the Windows right click context menu?

airborne

Honorary Master
Joined
Jul 13, 2007
Messages
18,067
I want to be able to right click on any file and open a Firefox window that runs a Google search of the filename.
Can't be too hard to do?
 

gregmcc

Honorary Master
Joined
Jun 29, 2006
Messages
25,512
Should be fairly easy. You could need to tap in the context menu and then call something like:

cmd "start chrome.exe https://www.google.com/search?q=filename"

Or call a batch with the above and use %1
 

airborne

Honorary Master
Joined
Jul 13, 2007
Messages
18,067
I've found a program called right click shortcuts creator and it looks like it could do the job of integrating the code into the context menu, I just need help working out what code string I must use.

In the Arguments field shown in the screenshot below I tried using the cmd "start chrome.exe https://www.google.com/search?q=filename" but that just opened a new file explorer window.

Right click.jpg
 

airborne

Honorary Master
Joined
Jul 13, 2007
Messages
18,067
Ok I realised the location was shown as explorer so obviously that's why it was being opened, I changed that to chrome and now chrome opens and inserts "http://start%20chrome.exe%20https//www.google.com/search?q=filename" into the search field, how can I get that to be the filename I'm right clicking on?

Edit: Using arguement https://www.google.com/search?q="%1" gets me the full folder path incl folder name into the search
 
Last edited:

airborne

Honorary Master
Joined
Jul 13, 2007
Messages
18,067
Ok I realised the location was shown as explorer so obviously that's why it was being opened, I changed that to chrome and now chrome opens and inserts "http://start%20chrome.exe%20https//www.google.com/search?q=filename" into the search field, how can I get that to be the filename I'm right clicking on?

Edit: Using argument https://www.google.com/search?q="%1" gets me the full folder path incl folder name with extension into the search.

Almost there, I just need the string to insert the filename on it's own, that must be possible?
 
Last edited:

Batista

Executive Member
Joined
Sep 2, 2011
Messages
7,909
Ok I realised the location was shown as explorer so obviously that's why it was being opened, I changed that to chrome and now chrome opens and inserts "http://start%20chrome.exe%20https//www.google.com/search?q=filename" into the search field, how can I get that to be the filename I'm right clicking on?

Edit: Using argument https://www.google.com/search?q="%1" gets me the full folder path incl folder name with extension into the search.

Almost there, I just need the string to insert the filename on it's own, that must be possible?

I dont think that is possible without something special, let me play around and see.
 

airborne

Honorary Master
Joined
Jul 13, 2007
Messages
18,067
Thanks for the info Batista, none of those links helped get past the next hurdle, I do already have copy folder path/name in my context menu, added it previously but that's unrelated to this current need.

Using argument https://www.google.com/search?q="%1" gets me the full Filename + folder path/file adrress + extension into the subsequent Chrome search. Essentially the string "%1" is getting that, proof of concept yay, I now just need the string term to only insert the filename on it's own with no extension, even with extension would still be very useable.
 

airborne

Honorary Master
Joined
Jul 13, 2007
Messages
18,067
I always thought Mybb was a pseudonym for Nerds Anonymous?? :whistling:
How horribly wrong I have been the whole time :crylaugh:
This really can't be the programming challenge of the century, Darwins evolutionary speed bump?

Make me believe!!!
 
Last edited:

airborne

Honorary Master
Joined
Jul 13, 2007
Messages
18,067
Maybe as a starter could someone can tell me what language I'm using to write the reg entry string for the context menu item?
What language is being used for the following argument : https://www.google.com/search?q="%1"

I've done a fair amount of googling and I get Java, proprietary Database code etc none of which works because it's not understood, by that I'm assuming not understood by Windows OS?
 
Last edited:

CataclysmZA

Executive Member
Joined
Apr 1, 2010
Messages
5,579
I don't see exactly why you'd need to be Googling filenames, but you can probably do this in a Powershell session.

https://foxdeploy.com/2013/11/16/us...h-a-new-tab-in-your-browser-to-search-google/

Scroll down to the comments to see a new way of launching a search in PS.

The way you do this with folders is by launching a Powershell script on a right-click for a folder or a file in the context menu.

https://superuser.com/questions/681...lorer-context-menu-on-items-containing-ampers

And then I guess just make a context menu item for the Powershell script. Or just make the context menu do the search itself.

https://superuser.com/questions/321...g-commands-via-the-context-menu/322037#322037

Good luck!
 
Last edited:

airborne

Honorary Master
Joined
Jul 13, 2007
Messages
18,067
^ Thanks, none of those helped, I'm not too clued up on Powershell.
This requires such a simple solution I've got 95% of the way there, I can get the filename incl full path into a Firefox search, all I need now is the string that only sends the "filename", excluding the path or extension.
 

CataclysmZA

Executive Member
Joined
Apr 1, 2010
Messages
5,579
^ Thanks, none of those helped, I'm not too clued up on Powershell.
This requires such a simple solution I've got 95% of the way there, I can get the filename incl full path into a Firefox search, all I need now is the string that only sends the "filename", excluding the path or extension.

You should give it a try, it is very useful once you get the script working and include it in your Powershell profile. That way it stays with you if you make a copy of it and put it on new computers you use, and you can even call it up using an alias command.

I think the method you've got working works as intended, but you need to use the filename as an object in the search, and CMD won't do that because the filename isn't an object it can reference.
 

wobbie

Well-Known Member
Joined
Jan 10, 2013
Messages
159
Have a look here..
http://www.quickaccesspopup.com/
It's a multi-purpose launcher (free), activated by pressing the mouse's scroll wheel at any time.
It can be configured to launch anything from folders, documents, applications, links etc. even sub menu's. No script needed.
So, to add Google, as an example, once the Quick Access Popup program is installed..
1. Mouse Wheel click
2. Settings
3. Add
4. Link
5. Continue
6. just add www.google.com into the link (URL) space, set icon
then, Save & Reload.
 
Last edited:

Batista

Executive Member
Joined
Sep 2, 2011
Messages
7,909
lol - I helped where I can, any more and you have to pay for my time hehe
 

airborne

Honorary Master
Joined
Jul 13, 2007
Messages
18,067
Thanks Wobbie, I'll check that out, I've been using Everything search for years, I'd be screwed without, I honestly don't know how the poor suckers that rely on the native wilndows search cope, it's pitifully slow which makes it practically useless.

Absolutely boggles my mind how a small relatively obscure program like Everything can do what the largest software company with decades of experience/huge workforce/enormous budget can't, it can't even come close to matching Everything and that on a feature that is a most basic and fundamental requirement for an OS.
 
Last edited:

wobbie

Well-Known Member
Joined
Jan 10, 2013
Messages
159
I don't think I've ever used the default search engine. Everything is so simple, fast, & just works instantly, as you type.
 
Top