VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Launch Application From URL Like AIM

by whiteknight (9 Submissions)
Category: Registry
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (6 Votes)

This tells how to launch a program from a web browser by typping in a url like AIM (e.g. myapp:// would launch c:\program files\myapp\myapp.exe)

Rate Launch Application From URL Like AIM

In the Regestry HKEY_CLASSES_ROOT Create a Key named what you want the 'protocol' to be (e.g. myapp).
 The '(Default)' value for that key is a description of the protocol.
 A Subvalue needs to be created named 'URLProtocol' the value of this is "".
 Then create a New SubKey to the protocol Key name it 'shell', no values need to be set here.
 Now create a SubKey to 'shell', name this 'open', no values to set. Next create asubkey to 'open', name this 'command'.
 The '(Default)' value for this key is the path to the application(e.g. c:\program files\myapp\myapp.exe %1).
 The '%1 will return any command line params to your application, i.e. any thing after the 'myapp://' will be returned. 


Thats it now you can open up your browser and type in the protocol (e.g. myapp://) and your application will launch. 


I have tested that so It does work. 

If you like this please post comments and vote.
if anyone knows how to see if commands are passed please either post how in the comments or email me @ [email protected].



Download a working use of this in a Win32 Whois Client. It Looks like other windows utilities like ping, ipconfig ect. It does NOT use the winsock ocx it uses winsock API. Its FREE so Get it now. Download the WhoIs Client Here

Download this snippet    Add to My Saved Code

Launch Application From URL Like AIM Comments

No comments have been posted about Launch Application From URL Like AIM. Why not be the first to post a comment about Launch Application From URL Like AIM.

Post your comment

Subject:
Message:
0/1000 characters