|
-
Oct 18th, 2005, 04:28 AM
#1
Thread Starter
Addicted Member
Program Url and Word
Hi,
I would like to intercept hyperlinks in Word when user is clicking on it. I have tried some ideas but no ones satisfied me. Searching on web, I managed to listen classic url from historical buffer...
But, for my problem, no way to catch program url : when you're click on hyperlink, you don't go to web page with IE but launch a program on you're hard disk tru the path found in windows register.
hyperlinks look like this :
cel:// (next program parameters) Follow/Sol:Earth (...)
cel allows computer to search program path in window register and launch it. Then the program is reading additional parameters from url.
I would like to catch string from url when it is clicked. How can I detect that url is selected in Word, and how can I get url information ?
I've tried an alternative solution : I've changed the path in register to the path of a program of mine. But if Word url launch my program, how could I pick up all url string (even url format) ?
I'm not very good in network and url processes, if someone could help me...
-
Oct 18th, 2005, 06:00 AM
#2
Re: Program Url and Word
This appears to be more of a Word VBA question than a VB question. Moved to Office Development.
-
Oct 18th, 2005, 02:10 PM
#3
Re: Program Url and Word
Why do you need to intercept the clicking of the hyperlinks? Just to start your program or app?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 20th, 2005, 05:40 AM
#4
Thread Starter
Addicted Member
Re: Program Url and Word
Well i want to get all url string for sending it trought lan to an other computer via Winsock functions
-
Oct 26th, 2005, 07:38 AM
#5
Thread Starter
Addicted Member
Re: Program Url and Word
Just to start your program or app?
I want more ! My second way for getting all url string, was to rewrite program path (in windows register) of the url to one of mine : when I click on hyperlink on word, my program is launched but how can I pick up all url informations in my program for dealing with?
Anybody has a solution...?
-
Oct 26th, 2005, 10:05 AM
#6
Re: Program Url and Word
Still, I would have to say that this does not sound legitimate. I dont see the need to intercept all urls like this?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 27th, 2005, 03:58 AM
#7
Thread Starter
Addicted Member
Re: Program Url and Word
I've thought I told why I want to intercept url calls from Word document : getting url string ! What can I add ?
Well, why I want to pick up url string when it's selected in Word document ?
...Let's describe my "cel" program url. Cel call Celestia program, the famous planetarium simulator. More, url call the program and send it some information like user position in 3D galaxy. Additional Classic Word documents, allow you to visit solar system, going from a position to and other thanks to these program urls. You're reading the document, click on url and celestia program update alone to illustrate the text.
I want to intercept these program urls when the word user click on it in order to a vb program of mine can show all clicked url string in an textbox.
As I said, I've found any solution or example code to manage that : url program doesn't appear in ie url buffer, Word Vb seems to give any opportunity to detect hyperlink and then execute code things... I've another solution, (like the web pages i think), is to send url on my vb program changing windows register of cel. The program is launched by word url when it's selected, but i don't know how can i get back url strings.
I hope I'm clearer, and this could allow you to help me !
-
Oct 29th, 2005, 10:48 PM
#8
Re: Program Url and Word
So your trying to reroute hyperlinks from a Word doc when clicked to open your program instead Celestia?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 30th, 2005, 03:47 AM
#9
Thread Starter
Addicted Member
-
Oct 30th, 2005, 10:18 AM
#10
Re: Program Url and Word
Why not just change the links in the Word doc, save the doc, and be done with it?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 31st, 2005, 06:02 AM
#11
Thread Starter
Addicted Member
Re: Program Url and Word
I don't would like to do any modification in my documents
-
Oct 31st, 2005, 10:41 AM
#12
Re: Program Url and Word
Why not that would be the simplest and quickest solution.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 2nd, 2005, 06:08 AM
#13
Thread Starter
Addicted Member
Re: Program Url and Word
Because there is a lot of documents (no finite number) and hyperlinks !
I've tried to reroute them changing cel path but after how can I pick up all url string in my program... no idea! I would prefer a lot that my program react at word url call instead of that !
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
|