Click here to Skip to main content
15,897,273 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I use a software at work and frequently need to copy-paste stuff from/to it. Most of the interaction with the software is using a mouse, however there are instances (windows/forms within it) when I need to copy-paste stuff from it. Unfortunately, the program does not support copying/pasting by right clicking and bringing up the familiar context menu items. The only way to copy-paste stuff from/to it the keyboard using Ctrl+C and Ctrl+V etc.

I was wondering if there is a way to write a program (in VB.NET - I am only slightly familiar with VB.NET) that will detect the program is running and send the context menu to it, even if it means sending/receiving Ctrl+C/V keys to it programmatically.I just want it to be able to send cut, copy, paste keys not much more than that. I am familiar with sendkeys in VB.NET. I will need the program to always run in the background or somehow detect when I am running the external program.

I have been googling for a few days but since my knowledge of VB.NET is limited, my search has not been very successful. The program basically looks and behaves like an Excel spreadsheet with lots of rows and column. You can click on a cell to bring it in focus and then use Ctrl+C/V or you can select multiple rows/columns just like in Excel but it lacks the context menu.
Posted
Comments
[no name] 15-Aug-15 17:07pm    
"detect the program is running", yes
"send the context menu to it", makes no sense
"familiar with sendkeys", then what exactly is the problem?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900