Solved

Get only windows, that can receive text

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

810 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