Click here to Skip to main content
16,022,875 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, i'm trying to make a website to show my database items and when a user clicks an item, it opens a link to send data from that website into my program because designing database on winform is a pain.

for example you can run a game in Steam Program from a website using this link:-
Quote:
steam://connect/31.186.251.11:28065

it uses steam client Bootstrapper to understand this code.

i want to make something like this, but i have no clue how to start or search for it, maybe there's already tutorials but i had no idea what keyword to use to start searching

thanks.

Edit: talking about the database was just for side information, the major question is about how to understand this type of link from my program

What I have tried:

i have no clue what to try and start pulling string-heads
Posted
Updated 12-Jun-18 3:03am
v2

First, your example is NOT sending data from a web server to a Windows application. What you're seeing is a URL that uses a custom Protocol Handler.

The URL is a shortcut of some kind, be it a shortcut on the desktop, Start Menu, a URL link you click in a browser window, ..., whatever. When you launch or click that shortcut, Windows looks up the protocol to see if there is a registered "handler" for it. In the case of Steam, the "steam:" protocol is handled by a locally installed application, NOT A WEBSITE!

The registered app is then launched and the link that was clicked is passed to the application as a command line argument for the app to process.

You can create your own protocol handler application any way you want. Start by Googling for "C# custom protocol handler[^]" and start reading.
 
Share this answer
 
In your example, "steam://" is a custom browser protocol. You can define a custom browser protocol and specify which program should open (in this case the steam client).

There's a good example here: Launching applications using custom browser protocols – Shotgun Support[^].
 
Share this answer
 
Comments
Hedi Hadi 12-Jun-18 8:45am    
thank you so much, you saved my day!
[no name] 12-Jun-18 8:47am    
Anytime :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900