Solved

Get only windows, that can receive text

Posted on 2009-07-16
4
161 Views
Last Modified: 2013-12-17
Hello, how can I get a list of only those open windows, that can receive text input? So, notepad will be included in the list, MS Word as well, etc., but no other ones.
0
Comment
Question by:kutiJack
  • 2
  • 2
4 Comments
 
LVL 85

Expert Comment

by:Mike Tomlinson
ID: 24871900
I don't think there is a universal way of determining this with such a wide open specification of "can receive text input".

For instance, an app could be using low level hooks or DirectX to get user input...all WITHOUT any controls on the main window that receive focus from the operating system.

Or an app could "receive" input via named pipes, custom registered windows messages or even sockets.

Could you narrow down your requirements further?...
0
 

Author Comment

by:kutiJack
ID: 24872454
Well, I would like to have an application, that would collect all text and images copied to clipboard and then, it would provide list of all open windows, that are capable to receive text or image and after selecting the desired one, it would activate the window and paste selected pieces of text and selected images to it. I know, I can iterate all open windows, but this makes the list too long and uncomfortable.
0
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 250 total points
ID: 24872615
Would it be sufficient to list just the windows that appear in the taskbar?
http://www.experts-exchange.com/Programming/Languages/.NET/Q_21739204.html
0
 

Author Comment

by:kutiJack
ID: 24872849
Yes, this should suffice, thank you.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question