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. The Lounge
  3. How to copy text underneath external program's context menu

How to copy text underneath external program's context menu

Scheduled Pinned Locked Moved The Lounge
tutorialquestionannouncement
3 Posts 2 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.
  • C Offline
    C Offline
    Craig Haywood
    wrote on last edited by
    #1

    I would like to know if anyone can give me an example of how to copy text underneath an external program's context menu. I am playing around with code for basic mouse gestures. When I perform, for example an upwards movement with the right mouse button held in, my program send Ctrl+C to copy whatever is selected when I release the right mouse button. However, lets say I am trying to copy text selected in notepad, If I release the right mouse button over the notepad window, notepad pops up its context menu before my copy command can execute. You can simulate this by selecting text in notepad, right click and while the contect menu is showing, try pressing ctrl+c. I am looking for a way to copy what is selected in the foreground window without having to close the context menu. The reason I don't want to close the context menu is that at times you might actually need it, like when you right-click and drag a file in explorer. If my program would esc the context menu then explorer won't pop up a context menu to move or copy the file to where you dragged it. I hope this makes sense. Anyone?

    B 1 Reply Last reply
    0
    • C Craig Haywood

      I would like to know if anyone can give me an example of how to copy text underneath an external program's context menu. I am playing around with code for basic mouse gestures. When I perform, for example an upwards movement with the right mouse button held in, my program send Ctrl+C to copy whatever is selected when I release the right mouse button. However, lets say I am trying to copy text selected in notepad, If I release the right mouse button over the notepad window, notepad pops up its context menu before my copy command can execute. You can simulate this by selecting text in notepad, right click and while the contect menu is showing, try pressing ctrl+c. I am looking for a way to copy what is selected in the foreground window without having to close the context menu. The reason I don't want to close the context menu is that at times you might actually need it, like when you right-click and drag a file in explorer. If my program would esc the context menu then explorer won't pop up a context menu to move or copy the file to where you dragged it. I hope this makes sense. Anyone?

      B Offline
      B Offline
      bryce
      wrote on last edited by
      #2

      Christan Grauss is your man - very knowledgeable and helpful chap for these sort of questions Bryce

      MCAD ---

      C 1 Reply Last reply
      0
      • B bryce

        Christan Grauss is your man - very knowledgeable and helpful chap for these sort of questions Bryce

        MCAD ---

        C Offline
        C Offline
        Craig Haywood
        wrote on last edited by
        #3

        My appollogies... I actually tried to delete this post and recreated it at: http://www.codeproject.com/Messages/4669683/How-to-copy-text-underneath-external-programs-cont.aspx[^] as I am in the wrong forum. Anyway, thanks Bryce for the quick reply. As I have not really posted here before, how do I contact Christan?

        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