|
-
Oct 29th, 2005, 06:14 AM
#1
Thread Starter
Addicted Member
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.
-
Oct 29th, 2005, 10:40 PM
#2
Hyperactive Member
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.
-
Oct 30th, 2005, 04:21 AM
#3
Thread Starter
Addicted Member
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:// ?
-
Oct 30th, 2005, 12:17 PM
#4
Hyperactive Member
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:
Private Sub Command1_Click()
Dim e_pos As Integer
Dim url As String
url = "cel://Follow/Sol:Earth"
e_pos = InStr(1, url, "cel://", vbBinaryCompare)
If e_pos <> 0 Then
MsgBox Mid(url, e_pos + 6, Len(url) - e_pos - 6)
End If
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.
-
Oct 31st, 2005, 05:16 AM
#5
Thread Starter
Addicted Member
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?
-
Nov 4th, 2005, 04:52 AM
#6
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|