Results 1 to 13 of 13

Thread: Program Url and Word

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    157

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

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Program Url and Word

    This appears to be more of a Word VBA question than a VB question. Moved to Office Development.

  3. #3
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    157

    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

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    157

    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...?

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  7. #7

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    157

    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 !

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  9. #9

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    157

    Re: Program Url and Word

    Yes, indeed

  10. #10
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    157

    Re: Program Url and Word

    I don't would like to do any modification in my documents

  12. #12
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  13. #13

    Thread Starter
    Addicted Member
    Join Date
    Oct 2005
    Posts
    157

    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
  •  



Click Here to Expand Forum to Full Width