Results 1 to 6 of 6

Thread: Launching a program with url

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    157

    Launching a program with url

    Hello,

    I've discovered that you can launch a program with url with a protocol refering to the program path found in windows register.

    I've tried it... and it goes well ! I've reused an existing url, rewrited the path to my program, and my program has been launched when I've clicked on hyperlink.

    I'm not a specialist in network and url uses, it's rather new for me ! But I would like to get all information of the url for showing them in a textbox. Do you know can I achieve that?

    Thanks.

  2. #2
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    UK
    Posts
    417

    Re: Launching a program with url

    Can;t you locate them in the registery then dig them out that way. it seem the simplest way tho.
    When your dreams come true.
    On error resume pulling hair out.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    157

    Re: Launching a program with url

    Can;t you locate them in the registery then dig them out that way. it seem the simplest way tho.
    It seems you only have the path in windows regiter. Url parameters are defined inside the hyperlink

    I'm writing my url

    cel://Follow/Sol:Earth/ (other paramaters...)

    cel is the file protocol found in windows register. How can I show in my textbox all caracters after cel:// ?

  4. #4
    Hyperactive Member
    Join Date
    Aug 2002
    Location
    UK
    Posts
    417

    Re: Launching a program with url

    Hi not sure of this is what you want all it does is extact. Follow/Sol:Erath/ out of the url

    VB Code:
    1. Private Sub Command1_Click()
    2. Dim e_pos As Integer
    3. Dim url As String
    4.     url = "cel://Follow/Sol:Earth"
    5.     e_pos = InStr(1, url, "cel://", vbBinaryCompare)
    6.    
    7.     If e_pos <> 0 Then
    8.         MsgBox Mid(url, e_pos + 6, Len(url) - e_pos - 6)
    9.     End If
    10. End Sub

    Let me know if this is wrong or you need something else.
    When your dreams come true.
    On error resume pulling hair out.

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    157

    Re: Launching a program with url

    Well, I don't need that first, but I need url string before !
    Indeed, when I clicked on my url wherever on my computer, my program is launched, but no way to get url string when my program starts : this is my problem... How can I get all url string when url linked my program?

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    157

    Re: Launching a program with url

    Please anyone have an idea to resolve my problem?

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