Please help!

Hello,
I am writing a C program that involves automatically pasting clipboard contents to MSWord. I am currently doing a CreateProcess to launch Word. My plan was to force keystrokes and do a ctrl-V using WM_CHAR once word was open. This, however, is not working. Maybe i'm sending the wrong handle when i do my SendMessage. If anybody could please tell me how i can paste the clipboard contents into word i'd really appreciate it. thanks!

Comments

  • : Hello,
    : I am writing a C program that involves automatically pasting clipboard contents to MSWord. I am currently doing a CreateProcess to launch Word. My plan was to force keystrokes and do a ctrl-V using WM_CHAR once word was open. This, however, is not working. Maybe i'm sending the wrong handle when i do my SendMessage. If anybody could please tell me how i can paste the clipboard contents into word i'd really appreciate it. thanks!
    :

    i am not sure how to do this, but if you do find out how, i would like a sample of your code, i am wondering how to make a program copy/paste.


    ~DaN

  • [green]
    An easy way is to use keybd_event() or SendInput()
    [/green]
    [size=2][red]

    [b]Bikram[/b][/red]
    [blue]http://www.geocities.com/nv5050[/blue]
    [red]**************************************[/red][/size]

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories