Howdy, Stranger!

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

Categories

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

  • GreyWolfSftwreGreyWolfSftwre Member Posts: 82
    : 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

  • bikibiki Member Posts: 492
    [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]

  • Chris BrownChris Brown USAMember Posts: 4,496 ✭✭

    ____ | http://forcoder.org | free ebooks and video tutorials about | Ruby JavaScript Visual Basic .NET C C# Scratch Assembly Delphi PL/SQL Java PHP Swift Objective-C Python Perl Go C++ MATLAB Visual Basic R Dart Hack Julia F# Scheme Lisp ML Alice ABAP Crystal Awk Ada Apex Scala Kotlin Logo Clojure SAS Prolog Fortran COBOL Transact-SQL FoxPro D VBScript Bash Rust LabVIEW Lua Erlang | ____

Sign In or Register to comment.