Results 1 to 10 of 10

Thread: [RESOLVED] Run your program when clicking a link?

  1. #1

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    Resolved [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.

  2. #2
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    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?

  3. #3
    Frenzied Member
    Join Date
    Dec 2007
    Posts
    1,072

    Re: Run your program when clicking a link?

    Just use ShellExecute API?

  4. #4

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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.

  5. #5
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    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.

  6. #6

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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.

    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.

  7. #7
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    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
    Last edited by Edgemeal; Feb 5th, 2008 at 09:20 PM.

  8. #8

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    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.

  9. #9
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Re: [RESOLVED] Run your program when clicking a link?

    added another link in case you missed it,

    cheers, hope it works out for you.

  10. #10
    Junior Member
    Join Date
    Aug 2009
    Location
    Denmark
    Posts
    20

    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
  •  



Click Here to Expand Forum to Full Width