[RESOLVED] Run your program when clicking a link?
Yahoo! Messenger had this feature. When clicking a link in a web browser, it pointed to something like:
ymsg:user
ie:
HTML Code:
<a href="ymsg:user">Send an instant message</a>
Which would then run Yahoo! Messenger and open an instant message to that user.
I want to have the same thing in mine. I've seen code on www.pscode.com/vb before but I can't find it. I remember it was something in the registry.
Does anyone know or have any ideas? I basically just want them to click a link like that and have it execute my program.
Edit: Here is an example:
http://profiles.yahoo.com/danny.guitar
Below my picture, you can see the smiley face and "Send IM" link. It points to ymsgr:sendIM?danny.guitar.
And after searching the registry, I found "ymsgr" in:
HKEY_CURRENT_USER\Software\Classes\callto\shell\open\command
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ymsgr
Re: Run your program when clicking a link?
Are you wanting the link to be on a Webpage? And this link when clicked will run an application on your PC?
Where does the Webpage originate from? Like from a Web Site or it is already on the user's machine?
Re: Run your program when clicking a link?
Just use ShellExecute API?
Re: Run your program when clicking a link?
They will be clicking a hyperlink from a webpage.
Kind of like how clicking a: mailto:[email protected] opens up an email program, ie: Outlook Express.
This link will open my program.
Re: Run your program when clicking a link?
Kind of like how clicking a: mailto:[email protected] opens up an email program, ie: Outlook Express.
That open up the app on their PC, not yours.
Re: Run your program when clicking a link?
Quote:
Originally Posted by jmsrickland
Kind of like how clicking a: mailto:[email protected] opens up an email program, ie: Outlook Express.
That open up the app on their PC, not yours.
Yes, this is what I want it to do.
I'm not sure I explained it well. :D
It's simple. There is a hyperlink on a webpage. When they click it, it opens my program on their computer.
They have already installed my program on their PC.
Sorry for the confusion.
Re: Run your program when clicking a link?
Quote:
Originally Posted by DigiRev
I want to have the same thing in mine. I've seen code on
www.pscode.com/vb before but I can't find it. I remember it was something in the registry.
This one?
Launch program from URL
Found this one there too,
Launch Application From URL Like AIM
Re: Run your program when clicking a link?
Quote:
Originally Posted by Edgemeal
That's the exact code I found a long time ago and have been trying to find but couldn't.
Thanks a million. :)
You must spread some Reputation around before giving it to Edgemeal again. :(
Re: [RESOLVED] Run your program when clicking a link?
added another link in case you missed it, ;)
cheers, hope it works out for you.
Re: [RESOLVED] Run your program when clicking a link?
Hey,
I have looked at the links but can someone help me, i need the code.
To my program.