Results 1 to 36 of 36

Thread: sending clipboard text to an active window

Hybrid View

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2004
    Posts
    56

    Re: sending clipboard text to an active window

    One more Bump before I give up...

  2. #2
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192

    Re: sending clipboard text to an active window

    I think I have something similar to what you are looking for.

    However, I must say that I use the VBEvent_I.dll, which was made by MerrionComputin (Duncan, if you are reading this, please update the link to your project, it took me ages to find it)... So you need to download it. I can't distribute it without his permission.

    Here is the source code: (You can compile it into a dll and the add it to your project going to "Project", "References" and "Browse...", then you check it [The name is "MCL EventVB Release I"] and the project will run) Source Code For EventVB

    (EventVB is used in this project to know when your application loses focus to other applications)

    And here is the project:
    Attached Files Attached Files
    Last edited by Tec-Nico; Dec 20th, 2004 at 01:37 PM.
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

  3. #3

    Thread Starter
    Member
    Join Date
    Dec 2004
    Posts
    56

    Re: sending clipboard text to an active window

    Wow! Thx for the post. I can't wait to try this. It will have to be this weekend, unfortunately.. but I will give it a shot.
    Just when I had given up, too! Thx, Tec-Nico!
    jk

  4. #4
    Frenzied Member Tec-Nico's Avatar
    Join Date
    Jun 2002
    Location
    México
    Posts
    1,192

    Re: sending clipboard text to an active window

    You are welcome. Please tell me if it is what you were expecting.
    We miss you, friend... Rest in Peace, we will take care of the rest of it.

    [vbcode]
    On Error Me.Fault = False
    [/vbcode]
    - Silence is the human way to share ignorance
    Tec-Nico

  5. #5

    Thread Starter
    Member
    Join Date
    Dec 2004
    Posts
    56

    Re: sending clipboard text to an active window

    Guess I can't make this work without the .dll, Tec. I wrote Duncan on Friday.. but still no word... but if I hear something I'll let you know! Thx again!

    Jolene

  6. #6
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: sending clipboard text to an active window

    If with a timer you kept the hwnd of the active window, would you be able to do what you want? You will be able to find the active window and the previous active window. But about the putting the text, it's tricky... Do you want to activate the previous window and paste or not? Or am I way off?


    Has someone helped you? Then you can Rate their helpful post.

  7. #7
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: sending clipboard text to an active window

    Also, are you using the Clipboard object or APIs to access the clipboard?


    Has someone helped you? Then you can Rate their helpful post.

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