|
-
Feb 5th, 2008, 05:22 PM
#1
[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
Last edited by DigiRev; Feb 5th, 2008 at 05:28 PM.
-
Feb 5th, 2008, 07:59 PM
#2
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?
-
Feb 5th, 2008, 08:02 PM
#3
Frenzied Member
Re: Run your program when clicking a link?
Just use ShellExecute API?
-
Feb 5th, 2008, 08:09 PM
#4
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.
-
Feb 5th, 2008, 08:17 PM
#5
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.
-
Feb 5th, 2008, 08:24 PM
#6
Re: Run your program when clicking a link?
 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. 
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.
-
Feb 5th, 2008, 09:15 PM
#7
Re: Run your program when clicking a link?
 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
Last edited by Edgemeal; Feb 5th, 2008 at 09:20 PM.
-
Feb 5th, 2008, 09:19 PM
#8
Re: Run your program when clicking a link?
 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.
-
Feb 5th, 2008, 09:23 PM
#9
Re: [RESOLVED] Run your program when clicking a link?
added another link in case you missed it, 
cheers, hope it works out for you.
-
Aug 17th, 2009, 09:44 AM
#10
Junior Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|