-
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).]
-
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.