I ended using a global mouse hook to perform (and draw) mouse gestures. That way I can call my own procedures when the right mouse button down/up event is fired
Add instant productivity to any windows application... http://www.funmouse.org
I ended using a global mouse hook to perform (and draw) mouse gestures. That way I can call my own procedures when the right mouse button down/up event is fired
Add instant productivity to any windows application... http://www.funmouse.org
BugZilla and notepad :-)
Add instant productivity to any windows application... http://www.funmouse.org
thanks to everybody who replied. I found a solution to the problem
sorry, english is not my first language. I meant whatever is selected under the context menu
RedDk wrote:
With the context menu open, moving the pointer to "copy" does the same thing
I can't programatically move the pointer as not all programs context menus will have the copy command at the same place. What do you mean what VB.net tools do I have? I use visual studio 2012
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?
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?
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?