473,651 Members | 2,551 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to copy from another process?

Hi everyone

I know only some about .net and C# but nothing about Windows API and Shells
and etc. So if this is not possible please tell me.

I want to copy a text from another process (from IE for instance). Instead
of letting user press Ctrl+C, I want my program to do it as an agent (The
fundanmental solution to tablet pc apps. When the user use guesture on my
app, it will do the copying.) Is there anyway that I can invoke the API to
get the currently highlighted text? Also, when I want to paste something
into current textbox, is there a way that I can have API do the pasting for
me?

I have thought of an alternative. Maybe I can let my app fire keyboard
command Ctrl+C and Ctrl+P to the processes, but I haven't figure out how to
do that yet. Can anyone give me a hint?

Thank you!
Jul 21 '05 #1
0 1218

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1867
by: Ram | last post by:
Hey, I have a solution that is built from both C# and VB.Net projects that some C# projects are referenced to VB.Net projects and vise versa. Whenever I try to rebuild my solution I get the following errors: "Cannot Copy Assembly <Assembly> - The Process Cannot Access The File Because It Is Being Used By Another Process". I tried to "kill" the ASPNET_WP process in a pre-built event and had no success... I read in more than a few old...
8
3306
by: RonHiler | last post by:
My copy constructor is crashing my program, and I can't figure out why. I'll try to make the code listing as short as I can. Here are the two headers: class BreakthroughClass { public: BreakthroughClass(); virtual ~BreakthroughClass(); BreakthroughClass(const BreakthroughClass &source);
3
10266
by: Martin Vorbrodt | last post by:
In "C++ Templates, The Complete Guide" i read that template copy-con is never default copy constructor, and template assignment-op is never a copy assignment operator. Could someone please explain how I could declate/override the two. Thanx
2
1435
by: Gidi | last post by:
Hi, I saw that someone asked that question here before, and i tried one of the answer that was gaven (Bob's tricks and tiips), The suggestion there was using the ImoprtDll and tried to import the user32.dll, when i tried to import it to the refernces, the Visual Studio crashed. So how can i force one copy of application (i'll be happy and thankful to get an example).
2
4150
by: Bob | last post by:
Cannot copy assembly '<...>' to file <...>.dll'. The process cannot access the file because it is being used by another process. Could not copy temporary files to the output directory. The file '<...>.dll' cannot be copied to the run directory. The process cannot access the file because it is being used by another process. I'm sick of this. At times I need to tinker with a dll that's being used by the project I'm working on - and...
12
2536
by: samoore33 | last post by:
I found a real nice article on how to copy a directory on MSDN. The only problem is that I can not figure out how to get the namespace Microsoft.VisualBasic.MyServices. I wanted to know if anyone else has had experience with this, or knows of a different way to copy a directory using VB. I found ways to copy files, but not having a lot of luck with finding a way to copy a directory other then this information I am finding on MSDN.
4
4634
by: TwistedPair | last post by:
All, Been trying to get a little program to work, and I think I'm really close, but I'm afraid I need to be pointed in the right direction. The code below will watch a directory for files created. If a file is created, it will copy it off to another directory. This even works if a bunch of files are created all at once, but after a few copies, the program dies for some reason. I suspect it's an IO issue, but I wanted to check with the...
0
2806
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hello, mister I have an application web asp.net 2.0 + vs 2005 and VS 2005 Web Application Project. Its appears this error in execution: "Cannot Create/Shadow Copy '<projectname>' when that file arleady exists" error.
0
1341
by: SP | last post by:
Dear all! I have written a web service which should archive files in a server directory. The files are placed in a directory that the web server can access. In the first step I copy them to a temporary directory on the web server. Afterwards I put some data into a database table and put one of the files into a content management system by sending an e- mail. If all that works fine I have to copy the files from the temporary folder into...
13
2601
by: jim | last post by:
Is there a way (using VB.Net or C#) to copy open or locked files? Thanks! jim
0
8349
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8795
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8460
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8576
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6157
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4143
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2696
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.