Results 1 to 8 of 8

Thread: [2.0] Catch Windows explorer event?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    66

    [2.0] Catch Windows explorer event?

    Hello

    Is there any way I can hook a user clicking a drive in My Computer, and when they do instead of opening the drive it opens my app.

    I think that way would be easier then putting an icon off my app in my computer? Or no?


    Thanks for any help.

  2. #2
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: [2.0] Catch Windows explorer event?

    Probably not worth the effort. This would be tough to make work on the new OS's and the older OS's at the same time.

    What effect were you hoping to achieve? It may be easier to hook FS calls than GUI events.
    I don't live here any more.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    66

    Re: [2.0] Catch Windows explorer event?

    Quote Originally Posted by wossname
    Probably not worth the effort. This would be tough to make work on the new OS's and the older OS's at the same time.

    What effect were you hoping to achieve? It may be easier to hook FS calls than GUI events.
    I wanted to add an icon to my computer. That the user would click on and it would open a file explorer.

    But, yea, I figured adding the icon would be hard.

    Hopefully someone know's a way it can be done though.

  4. #4
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: [2.0] Catch Windows explorer event?

    Yes its possible, but is not a trivial piece of code you can just grab off some website.
    I don't live here any more.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    66

    Re: [2.0] Catch Windows explorer event?

    Quote Originally Posted by wossname
    Yes its possible, but is not a trivial piece of code you can just grab off some website.
    Really? I searched google hard, and found nothing.

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2.0] Catch Windows explorer event?

    He said it's NOT a trival piece of code you can just grab off a Web site. The usual way to accomplish something like this would be to add a shell extension so the user can right-click a drive and select a menu option to use your app to explore it. I don't pretend to know how to do that but that would be the "proper" way to do it.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    66

    Re: [2.0] Catch Windows explorer event?

    Oh, I mis read.

    Here is how I may do it. My app will run in toolbar.

    When you click on a drive in My computer it shows a window caption. Well, I think i will just keeping searching for that active wonow, and when found, kill it. then bring up my window.

    It is sloppy, and lazy way out. But, the only way i know.

  8. #8
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2.0] Catch Windows explorer event?

    Like I said, you should create a shell extension. It's up to you but it's not hard to go to MSDN and search for "shell extension".
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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