Giter Site home page Giter Site logo

Comments (12)

SanderRonde avatar SanderRonde commented on June 8, 2024

Instead of putting the file path in there, you need to put (in your case) "BandicamPortable Protocol://" into the link box (so not the link to the file path, but to the URI scheme). However, "BandicamPortable Protocol" won't work because it contains a space (which should have been marked as an invalid scheme). So first of all you need to generate a new scheme that does not contain spaces, like myscheme (the standard name). Then in the "link(s)" box you need to put "myscheme://", and then it should launch your program.

from customrightclickmenu.

pendave avatar pendave commented on June 8, 2024

How to generate a new scheme like "myscheme://" ?

Any tutorial for that?

from customrightclickmenu.

SanderRonde avatar SanderRonde commented on June 8, 2024

The same way you generated the other one, by clicking the "generate" button after entering what you want into the inputs. Except this time entering "myscheme" (be sure to not include the :// in the name, only do that while using it as a link) instead of "BandicamPortable Protocol".

from customrightclickmenu.

pendave avatar pendave commented on June 8, 2024

Great! It works!
qq 20170510104936

6 lq4msnlase hzhfi3_98

Then I need to remove the former error .reg info.

from customrightclickmenu.

pendave avatar pendave commented on June 8, 2024

I think you should record some sample tutorials for using the plugin you created, and upload them to Youtube so that guys will handle the tips well.

from customrightclickmenu.

SanderRonde avatar SanderRonde commented on June 8, 2024

You don't really have to remove it, it won't get accidentally activated anyway and can't do any harm except launching your bandicam if someone decides to target you specifically.

If you really want to remove it though, you can go to "HKEY_CLASSES_ROOT\BandicamPortable\shell\open\command" in your regedit and remove the key

Regarding creating tutorials, i might do that eventually but i'm just a bit busy at the moment so it might take a while.

from customrightclickmenu.

pendave avatar pendave commented on June 8, 2024

BTW, can I use the same "myscheme://" to open other .exe applications?

like D:\greensoft\PDFBinderPortable\PDFBinder.exe

Should I manually add others into the reg?

qq 20170510105526

from customrightclickmenu.

SanderRonde avatar SanderRonde commented on June 8, 2024

You'd have to choose a new name and generate a new regex file, otherwise it won't know which one to open, so for example use PDFBinder as a name instead of myscheme.

from customrightclickmenu.

pendave avatar pendave commented on June 8, 2024

I see, after I try to add another exe behind it opend the default bandicam exe.

aridvl y7uc u 9wl 7r3

from customrightclickmenu.

SanderRonde avatar SanderRonde commented on June 8, 2024

Thats because the url you're linking to in the address bar still starts with myscheme:// and not the new name (don't know what it is as I can't read chinese).
By the way what comes after the "://" does not matter, it opens a program/file based on what comes before it, so simply linking do myscheme:// does the same as linking to myscheme://D://Some/U/R/L.exe.

You are registering a url scheme (like http:// or https://) to open a certain programs, linking only those things, not what comes after it.

from customrightclickmenu.

pendave avatar pendave commented on June 8, 2024

Could this kind of running exe or bat or cmd get parameters passed?

If I want to right click on a Youtube page to pass the url to python.exe?

from customrightclickmenu.

SanderRonde avatar SanderRonde commented on June 8, 2024

Yes, if you read this page you can learn more about it https://msdn.microsoft.com/en-us/library/aa767914%28VS.85%29.aspx?f=255&MSPPError=-2147217396. However the extension can not generate this one for you, you have to edit the .reg file (with notepad or something) and behind the .exe" place this:
"%1"

So the last line of your earlier examples becomes:
@=""D:\greensoft\BandicamPortable\BandicamPortable.exe" "%1""

After that anything after the :// in the link is passed, so myscheme://abc launches:
BandicamPortable.exe abc

However you can not as you said click on a youtube page and pass that specific URL. You can only pass predefined data (so like the links). If you would want to do that you would have to open the URI with javascript which chrome forbids.

Basically if you want to learn more or don't understand, the page i linked explains this much better than i can.

from customrightclickmenu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.