Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6090851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:15:40+00:00 2026-05-23T12:15:40+00:00

I am trying to get a control at a specific screen coordinate which I

  • 0

I am trying to get a control at a specific screen coordinate which I have given. Now I want to know which control would receive a mouse-click. (The control is in another application in an UI Automation scenario.)

Also, let me say, that Control, Windows Handle and AutomationElement are all the same to me, since they are more or less easily convertible into one another (apart from maybe a Control which I think does not work in a different process).

There are the obvious functions like WindowFromPoint and AutomationElement.FromPoint, but both fail, returning some element that seems to be (invisibly) custom drawn on top. Still, I know that the mouse clicks go to the control I desire. So.. is there a way to find out where the mouse clicks are really going? Maybe alternatively to find out whether an element passes mouse-clicks through?

Many thanks
Andreas

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T12:15:40+00:00Added an answer on May 23, 2026 at 12:15 pm

    Since there are no answers (or am I too impatient?), there is.. not a solution but rather a workaround I have found.

    Actually, what I would have wanted is a deep search that is parameterizable (which unfortunately does not exist, though I suppose you could do it recursively yourself).

    So.. the workaround is: I make the windows I don’t want invisible.

    Strangely and interestingly enough, this is easily doable from outside your application, simply call the ShowWindow ( http://www.pinvoke.net/default.aspx/user32/ShowWindow.html ) function and hide the window that you don’t want to take into account. You could reset it later to its original state if you don’t want to change the target application.

    Anybody who has a better solution: by all means, please tell me!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get a user control working asynchronously, yet no matter what I
I am trying to get an ASP.NET 3.5 ListView control to select and highlight
I've got an asp.net ajax style AccordionPane control that I am trying to get/set
I have been wrestling with SvcUtil all day, trying to get it to generate
I was trying to use ajax control toolkit in sharepoint 2010, but i get
Basically, what I am trying to do is have a generic simulator-interface which acts
I have been trying to get the IIS URL Rewrite engine to work for
I'm trying get values from a GridView using the following code: foreach (GridViewRow row
Trying to get my css / C# functions to look like this: body {
Trying to get an ASP application deployed; it worked for a while but then

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.