Results 1 to 2 of 2

Thread: How do I enable my program to paste.....

  1. #1

    Thread Starter
    Addicted Member Daniel_Christie's Avatar
    Join Date
    Jan 2000
    Location
    USA
    Posts
    245

    Post

    How do I enable my program to paste into another program's text boxes?

    I am not sure but I believe I need the other program's "hWnd". Is this right? If so how does one find what the "hWnd" is? I obviously am not familiar with hWnd but I am very eager to know and learn fast.

    If more info is needed or you are bored and need something to read, here is what I was planning to do. I have a program at work that I am supposed to log the call details of every trouble shoot I do. On average most of the cases I get daily are nearly the same five or so issues. This means I often spend, rather waste, my precious time typing in the same old trouble shooting techniques and steps. I wan't to make a simple proggie that will allow me to type in the steps and details. Then have a drop down list box that will allow me to chose from a list of issues and the program will paste the boring and lengthy details into my employer's program.
    Except I am not sure how to make my proggie speak with theirs. :-( I am using VB5.

    Any help would be greatly appreciated,
    Daniel Christie

    [This message has been edited by Daniel_Christie (edited 01-30-2000).]

    [This message has been edited by Daniel_Christie (edited 01-30-2000).]

  2. #2
    Addicted Member
    Join Date
    Jan 2000
    Location
    Fresno, California, USA
    Posts
    195

    Post

    The hWnd isn't necessary to copy and paste. It is the Windows Handle for the object, and is a property of the object. You can get it by moving the property to a long variable: nlVariable = object.hWnd. To copy and paste, check out the ClipBoard SetText and GetText functions in VB help.

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