mithrandiir42
Member
- Joined
- Mar 7, 2006
- Messages
- 16
- Programming Experience
- 3-5
Hi everyone,
I've been been beating my head against the wall trying to get at the selected text of an external program. Basically my program will run in the background and wait for a hotkey to be pressed. When that happenes, I want to retrieve the selected text from whatever program i'm working in.
My first approach was to simulate keystrokes to simulate a ctrl+c which I suppose is still a possibility but it seems like there should be a much cleaner way to do this by using SendMessage to the active text box or something like that. I'm also want to steer away from using keystrokes because i'm worried it might interfere with what the user is doing.
If anyone knows of a good way to go about this, I'd really appreciate any help.
Thanks a lot in advance!
-Jeremy
I've been been beating my head against the wall trying to get at the selected text of an external program. Basically my program will run in the background and wait for a hotkey to be pressed. When that happenes, I want to retrieve the selected text from whatever program i'm working in.
My first approach was to simulate keystrokes to simulate a ctrl+c which I suppose is still a possibility but it seems like there should be a much cleaner way to do this by using SendMessage to the active text box or something like that. I'm also want to steer away from using keystrokes because i'm worried it might interfere with what the user is doing.
If anyone knows of a good way to go about this, I'd really appreciate any help.
Thanks a lot in advance!
-Jeremy