send copy message

  • Thread starter =?ISO-8859-1?Q?M=E9sz=E1ros_Tam=E1s?=
  • Start date
?

=?ISO-8859-1?Q?M=E9sz=E1ros_Tam=E1s?=

Hi,

How can I "steal" selection from an application?
e.g. I select some text in the browser and I would like to see this text
from my application.
Can I send for example CTRL-C (Clipboard-Copy) message to other app-s?
How?

Thanks in advance!

Tamas Meszaros
 
D

Dale Preston

Try the SetActiveWindow Win32 API method to set the window you want to copy
from as the active window. This isn't necessary if you have other means,
such as the user interface to make the window active.

Once your desired window is active, use the System.Windows.Forms.SendKeys
class to send the keystrokes to the target application.

HTH

DalePres
MCAD, MCDBA, MCSE
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

unhide window 8
input focus 3
backup_restore clipboard 2
required memory 1
unhide window 1
Send CTRL+C to active Application 6
WTSEnumerateSessions 2
Requested clipboard operation did not succeed 3

Top