By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,412 Members | 978 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,412 IT Pros & Developers. It's quick & easy.

Implement Ctrl-C, Ctrl-V

P: n/a
Hi,
I am writing a C program trying to read highlighted text in aother
application (Acrobat Reader or Microsoft Office). How do I find out
which application is on focus and grab the text highlighted? Thanks.
Danny
Nov 13 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On 14 Aug 2003 07:47:48 -0700
da****@yahoo.com (Danny) wrote:
Hi,
I am writing a C program
Then why are you posting in a C++ group?
trying to read highlighted text in aother
application (Acrobat Reader or Microsoft Office). How do I find out
which application is on focus and grab the text highlighted? Thanks.


You can't (using standard C/C++).

br
socketd
Nov 13 '05 #2

P: n/a

"Danny" <da****@yahoo.com> wrote in message
news:68**************************@posting.google.c om...
Hi,
I am writing a C program trying to read highlighted text in aother
application (Acrobat Reader or Microsoft Office). How do I find out
which application is on focus and grab the text highlighted? Thanks.
Danny


Windows-specific problem is off-topic here.
Try ask in comp.os.ms-windows.programmer.win32

--
Jeff
Nov 13 '05 #3

P: n/a
In <68**************************@posting.google.com > da****@yahoo.com (Danny) writes:
I am writing a C program trying to read highlighted text in aother
application (Acrobat Reader or Microsoft Office). How do I find out
which application is on focus and grab the text highlighted? Thanks.


The C abstract machine is single-tasking, single-threaded, therefore
there is exactly one application running at a time, as far as the C
language is concerned.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 13 '05 #4

P: n/a

"Danny" <da****@yahoo.com> wrote in message news:68**************************@posting.google.c om...
Hi,
I am writing a C program trying to read highlighted text in aother
application (Acrobat Reader or Microsoft Office). How do I find out
which application is on focus and grab the text highlighted? Thanks.
Danny


Read the documentation about the clipboard or download the tutorial
of lcc-win32 about C programming under windows. There search for
the clipboard examples.

jacob
Nov 13 '05 #5

P: n/a
jacob navia wrote:
"Danny" <da****@yahoo.com> wrote in message
I am writing a C program trying to read highlighted text in
aother application (Acrobat Reader or Microsoft Office). How
do I find out which application is on focus and grab the text
highlighted? Thanks.


Read the documentation about the clipboard or download the
tutorial of lcc-win32 about C programming under windows. There
search for the clipboard examples.


Please restrict your answers to standard C in c.l.c. Redirection
to other newsgroups which do not insist on portability is also
acceptable. In some cases clearly labelling them as non-portable
extensions will do. However giving the innocents the impression
that such an operation is generally available in portable C is
totally unacceptable here.

--
Chuck F (cb********@yahoo.com) (cb********@worldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net> USE worldnet address!
Nov 13 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.