Results 1 to 3 of 3

Thread: Clipboard for passing text between exe's

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Posts
    4

    Clipboard for passing text between exe's

    We have many exe's that we run in our application, and we'd like to pass text between them (sometimes 2 runnig instances of the same exe). We don't want to just place the text with the usual clipboard operations. What is the best way to do that? Also, is there a good place to look for information such as this?

  2. #2
    Frenzied Member
    Join Date
    Aug 2001
    Posts
    1,075
    If these programs are all your own applications you can use the SendMessage API and subclassing to reliably pass information between two or more applications. The attached project demonstates how to do this.


    Greg
    Attached Files Attached Files
    Free VB Add-In - The Reference Librarian
    Click Here for screen shot and download link.

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2001
    Posts
    4
    Thanks for the quick reply. I'll keep your sample code for when I want the capability you suggested.

    However, what I want is to really have a copy and paste situation. I don't want to send strings. I may have quite a number of exe's open, and I don't want to maintain handles to all of them to make sure they all get them. I do have an event mechanism set up, but really all I want is to put some text somewhere that the other exe's can get to, which doesn't impact the stuff everyone else puts into the clipboard - as a matter of fact, our applications want to use the clipboard in the normal way as well.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width