Sign in to follow this  
Z3R0Bit

C# Problem

Recommended Posts

You will need to find the Window Handle of the other application's window and then the control in order to read from it.

You probably would have to enumerate all Windows on the screen, check the name of it and then find the required control on it. It is possible, since you can just send messages to a Window Control, but it requires quite some work.

Toolmaker

Share this post


Link to post
Share on other sites
Toolmaker is correct. You essentially need to enumerate top level windows (stuff that is open and visible) and get a handle to be able to do any kind of manipulation. That said, I'm not sure whether it is possible for you to access the child controls on a random application the way you are suggesting.

Well, perhaps not through .NET normally; with some jiggery pokery and DLLImports you might manage it -- but doesn't sound like a very good idea anyway...is there a good reason for doing this??

Take a look at this for ideas, perhaps.

~Shiny

Share this post


Link to post
Share on other sites
Also be careful when accesing different gui elements through other programs.GUI elements are not thread-safe meaning if two or more threads try to access a GUI element funky things will happen.You would need someking of synchronization(monitors,lock,mutex,semaphore O_O)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this