Solved

Get only windows, that can receive text

Posted on 2009-07-16
4
162 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

679 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