send copy message

  • Thread starter Thread starter =?ISO-8859-1?Q?M=E9sz=E1ros_Tam=E1s?=
  • Start date 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
 
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
 
Back
Top