This article is a mirror article of machine translation, please click here to jump to the original article.

View: 23762|Reply: 2

[Console Program] PC browser calls to execute .NET applications

[Copy link]
Posted on 2020-8-15 23:09:09 | | | |
We have used Xunlei Browser, when you click to download Xunlei download link, the browser will ask if you want to open the Xunlei application, after clicking to open, Xunlei can get the download address, and then download the operation.

For example:

thunder://xxxxx

The principle is that when the Thunderbolt program is installed, it will register a thunder protocol with the system, and the registration protocol is to write the corresponding data to the registry.

Registry address: HKEY_CLASSES_ROOT\thunder

Registry content:

Since you know the principle, it is very easy to implement.

C# Common Registry Operation Method
https://www.itsvse.com/thread-2729-1-1.html

.net writes the corresponding information to the registry and registers its own protocol, the code is as follows:

Testing with Google Chrome, we typed in the browser address:

itsvse://test_open_application

The results are as follows:



We can also successfully obtain the parameters passed to us.

Using other browsers "ie" and "edge" can open the application normally, as shown below:



html open local application code as follows:



Note:The registered agreement name cannot contain an underscore

Source code download:

Tourists, if you want to see the hidden content of this post, pleaseReply


(End)




Previous:Angular 11 series (XIV) production environment for debugging
Next:Jquery sorts the price and volume of products and filters them by price range
Posted on 2020-8-18 18:49:10 |
Wood should be arable land
Posted on 2020-8-19 14:46:57 |
It's difficult, what about points
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com