Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. Article Writing
  4. How do you customize the windows context menu so that it shows specific options only only when opened for a specific application?

How do you customize the windows context menu so that it shows specific options only only when opened for a specific application?

Scheduled Pinned Locked Moved Article Writing
tutorialquestion
13 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Member 4169556

    Wrong Title. Hmmm, that's a bit like someone asking for where the bathroom is and you saying not here. However, I don't think a request for an article that shows how to set up context menu items that only show for a specific program when its icon is right clicked, is off topic to this Forum. But, if you would like offer the forum that you think this request should go under, I'd be interested. I've already searched for articals and program examples using "context menu" and none of the findings actually do what I'm looking for. They all seem to deal with adding a menu option to the context menu when a folder or file with a certain extention so that you can run your program on that folder or file when the menu item is clicked. What I'm looking for is different, i.e., only show the menu item when a specific program's icon is right clicked. Thank you

    P Offline
    P Offline
    Pete OHanlon
    wrote on last edited by
    #4

    Member 4169556 wrote:

    Wrong Title. Hmmm, that's a bit like someone asking for where the bathroom is and you saying not here. However, I don't think a request for an article that shows how to set up context menu items that only show for a specific program when its icon is right clicked, is off topic to this Forum. But, if you would like offer the forum that you think this request should go under, I'd be interested. I've already searched for articals and program examples using "context menu" and none of the findings actually do what I'm looking for. They all seem to deal with adding a menu option to the context menu when a folder or file with a certain extention so that you can run your program on that folder or file when the menu item is clicked. What I'm looking for is different, i.e., only show the menu item when a specific program's icon is right clicked.

    Maybe I missed something in the OP. Perhaps it was written in Latvian 1Pt font, but there is no mention anywhere that I can see of a request for an article. There was a question on the best way to accomplish the task, but nothing on somebody writing an article on it.

    Deja View - the feeling that you've seen this post before.

    My blog | My articles | MoXAML PowerToys

    M 1 Reply Last reply
    0
    • M Member 4169556

      Wrong Title. Hmmm, that's a bit like someone asking for where the bathroom is and you saying not here. However, I don't think a request for an article that shows how to set up context menu items that only show for a specific program when its icon is right clicked, is off topic to this Forum. But, if you would like offer the forum that you think this request should go under, I'd be interested. I've already searched for articals and program examples using "context menu" and none of the findings actually do what I'm looking for. They all seem to deal with adding a menu option to the context menu when a folder or file with a certain extention so that you can run your program on that folder or file when the menu item is clicked. What I'm looking for is different, i.e., only show the menu item when a specific program's icon is right clicked. Thank you

      M Offline
      M Offline
      Member 4169556
      wrote on last edited by
      #5

      Let's try this again. Would someone write an article showing how to create a context menu item that on displays on a specific program's icon? There are plenty of articals showing how this can be done for a folder or a file with a specific type, but as far as I've seen doing searches on "context menu" there aren't any for what I'm looking for, which is somethink like you see when you put in a CD and click on its context menu, i.e, install menu.

      M 1 Reply Last reply
      0
      • P Pete OHanlon

        Member 4169556 wrote:

        Wrong Title. Hmmm, that's a bit like someone asking for where the bathroom is and you saying not here. However, I don't think a request for an article that shows how to set up context menu items that only show for a specific program when its icon is right clicked, is off topic to this Forum. But, if you would like offer the forum that you think this request should go under, I'd be interested. I've already searched for articals and program examples using "context menu" and none of the findings actually do what I'm looking for. They all seem to deal with adding a menu option to the context menu when a folder or file with a certain extention so that you can run your program on that folder or file when the menu item is clicked. What I'm looking for is different, i.e., only show the menu item when a specific program's icon is right clicked.

        Maybe I missed something in the OP. Perhaps it was written in Latvian 1Pt font, but there is no mention anywhere that I can see of a request for an article. There was a question on the best way to accomplish the task, but nothing on somebody writing an article on it.

        Deja View - the feeling that you've seen this post before.

        My blog | My articles | MoXAML PowerToys

        M Offline
        M Offline
        Member 4169556
        wrote on last edited by
        #6

        From your comments, I'm guessing that posting a question that asks for information on a topic in the request for article forum isn't sufficiently clear.

        P 1 Reply Last reply
        0
        • M Member 4169556

          From your comments, I'm guessing that posting a question that asks for information on a topic in the request for article forum isn't sufficiently clear.

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #7

          Correct, because it looks like a request for help solving a problem, and not for somebody to write an article on this topic.

          Deja View - the feeling that you've seen this post before.

          My blog | My articles | MoXAML PowerToys

          M 1 Reply Last reply
          0
          • H howardjr

            I have an application that the user may open normally by double clicking its icon on the desktop, but I also want to add a couple of specific 'short-cut' options to the contect menu that should only show when the windows explorer context menu is opened by right clicking the application's icon. Each of these options will start the program, perform a function of the application specified by the menu option that was selected, and then close the application. Because none of these functions involve working on a file or folder, I don't want these options to show on any other file's or folder's context menu. My idea is to use command line switches to specify the different application functions, I just need to know how to set up the context menu and limit it to just the application's icon. If it makes any difference, I am using Vista, but I'll want to also set this up in WinXP. Thank you.

            P Offline
            P Offline
            Paul Conrad
            wrote on last edited by
            #8

            Wrong forum.

            "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

            M 1 Reply Last reply
            0
            • P Pete OHanlon

              Correct, because it looks like a request for help solving a problem, and not for somebody to write an article on this topic.

              Deja View - the feeling that you've seen this post before.

              My blog | My articles | MoXAML PowerToys

              M Offline
              M Offline
              Member 4169556
              wrote on last edited by
              #9

              The distinction between asking for an article on a topic I want to see and have a need for, and asking for help on the same topic isn't clear to me. Are you saying that people should only ask for articles that aren't related to problems. That doesn't make sense. I often buy magazines with articles and even whole books on topics related to programming problems I need information on. Unfortunately, I just haven't been able to find any that deal with my question. You seem to be moderating this forum, so I suggest that if this forum isn't open to all programming topics that you might want to give the forum a more descriptive title or a forum description telling us what topics may be posted in this forum, and the right way to request appropriate articles.

              P 1 Reply Last reply
              0
              • P Paul Conrad

                Wrong forum.

                "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon "Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham

                M Offline
                M Offline
                Member 4169556
                wrote on last edited by
                #10

                You and Pete, appear to like to say "Wrong Topic" and then accuse me of missing some non-existent clue. Since you and Pete think my request for an article shouldn't be posted here, where on this site would you suggest?

                1 Reply Last reply
                0
                • M Member 4169556

                  The distinction between asking for an article on a topic I want to see and have a need for, and asking for help on the same topic isn't clear to me. Are you saying that people should only ask for articles that aren't related to problems. That doesn't make sense. I often buy magazines with articles and even whole books on topics related to programming problems I need information on. Unfortunately, I just haven't been able to find any that deal with my question. You seem to be moderating this forum, so I suggest that if this forum isn't open to all programming topics that you might want to give the forum a more descriptive title or a forum description telling us what topics may be posted in this forum, and the right way to request appropriate articles.

                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #11

                  When you say this: "My idea is to use command line switches to specify the different application functions, I just need to know how to set up the context menu and limit it to just the application's icon. If it makes any difference, I am using Vista, but I'll want to also set this up in WinXP.", it's asking for help. If you want it to be an article, you have to tell us because we can't read your mind - we can only go on the evidence before us, which said Programming Question. Now, as for which forum to ask this in, it depends on the language you are using. If it's C#, try the C# forum, VB.NET - use the VB.NET forum. C++, choose either the Visual C++ forum (if it's an unmanaged application) or the CLI forum (it it's a managed app). There - more than enough forums to choose from.

                  Deja View - the feeling that you've seen this post before.

                  My blog | My articles | MoXAML PowerToys

                  M 1 Reply Last reply
                  0
                  • P Pete OHanlon

                    When you say this: "My idea is to use command line switches to specify the different application functions, I just need to know how to set up the context menu and limit it to just the application's icon. If it makes any difference, I am using Vista, but I'll want to also set this up in WinXP.", it's asking for help. If you want it to be an article, you have to tell us because we can't read your mind - we can only go on the evidence before us, which said Programming Question. Now, as for which forum to ask this in, it depends on the language you are using. If it's C#, try the C# forum, VB.NET - use the VB.NET forum. C++, choose either the Visual C++ forum (if it's an unmanaged application) or the CLI forum (it it's a managed app). There - more than enough forums to choose from.

                    Deja View - the feeling that you've seen this post before.

                    My blog | My articles | MoXAML PowerToys

                    M Offline
                    M Offline
                    Member 4169556
                    wrote on last edited by
                    #12

                    "If you want it to be an article, you have to tell us because we can't read your mind - we can only go on the evidence before us, which said Programming Question" "which said Programming Question" That's your assumption. I never said this was a programming question. As far as I can tell this forum is for asking for Articles and Ideas that are not tied to any specific programming language, which is why I put my request here. By the way, from what I've seen on this site, on the internet - in general, or at any of Microsoft's sites, I don't think the context menus can be configured the way I want, i.e., to show a specific option for just one program when that program's icon is right clicked. So never mind on this. "More than enough forums to choose from" But not this one - seems to be your point initial point, and I think it still is. "Deja View" - Probably because the post was never atiquately answered.

                    1 Reply Last reply
                    0
                    • M Member 4169556

                      Let's try this again. Would someone write an article showing how to create a context menu item that on displays on a specific program's icon? There are plenty of articals showing how this can be done for a folder or a file with a specific type, but as far as I've seen doing searches on "context menu" there aren't any for what I'm looking for, which is somethink like you see when you put in a CD and click on its context menu, i.e, install menu.

                      M Offline
                      M Offline
                      Michael Dunn
                      wrote on last edited by
                      #13

                      Context menus work off file types. The reason a CD has a different menu is because its type is Drive and the shell extension behind that menu detects when it's being invoked on a CD, and shows the appropriate menu. When you right-click a program's icon, that's an EXE file, so you'd need to write a shell extension that: a) is invoked for EXE files, and b) checks what file is being right-clicked If it's the relevant program, add your menu items.

                      --Mike-- Visual C++ MVP :cool: LINKS~! CP SearchBar v3.0 | C++ Forum FAQ "That's what's great about doing user interface work. No matter what you do, people will say that what you did was idiotic." -- Raymond Chen

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups