Megalith
Well-known member
- Joined
- Aug 21, 2006
- Messages
- 66
- Programming Experience
- 10+
is there a way i can Automatically cut and paste the contents of a regularly updating richtext box in an external application (manually cutting and pasting does work) while at the same time allowing the user to perform other tasks both within my application and other external applications(like chatting on yahoo)?
I have tried the following unsuccesfully:-
SendMessage API. the routine returned an empty string.
Performing mousemove and click commands to select text right click select copy move to my text box and paste it in it. this worked but prevented me from performing any other tasks on the computer
sending key commands. This worked in a way but the Alt-Tab would select the wrong window and again it meant i was unable to perform tasks like chat on yahoo.
The richtextbox in the external application is updated upto 5 times a second at times and at other times once in every 15 seconds or longer. what would be perfect would be a method to act when the box updates.
any suggestions? I've read & re-read the API-Guide and cant seem to find a routine that will perform this, what i presume to be, simple task.
The contents of the box are plain text of a standard font type and size with 2 colours red and black the background colour is like old printer-paper ie white/light green alternating lines. My application successfully determines the Hwnd property if i need it.
I have tried the following unsuccesfully:-
SendMessage API. the routine returned an empty string.
Performing mousemove and click commands to select text right click select copy move to my text box and paste it in it. this worked but prevented me from performing any other tasks on the computer
sending key commands. This worked in a way but the Alt-Tab would select the wrong window and again it meant i was unable to perform tasks like chat on yahoo.
The richtextbox in the external application is updated upto 5 times a second at times and at other times once in every 15 seconds or longer. what would be perfect would be a method to act when the box updates.
any suggestions? I've read & re-read the API-Guide and cant seem to find a routine that will perform this, what i presume to be, simple task.
The contents of the box are plain text of a standard font type and size with 2 colours red and black the background colour is like old printer-paper ie white/light green alternating lines. My application successfully determines the Hwnd property if i need it.