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

  • SEARCH
  • Home
  • 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 8385805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:45:43+00:00 2026-06-09T17:45:43+00:00

I am developing UI Automation client(c++) for metro app. I am able to get

  • 0

I am developing UI Automation client(c++) for metro app. I am able to get element on the metro UI.I am using Raw Tree Walker

  1. getting the Automation Tree

    automation->get_RawViewWalker(&pTreeWalker);
    
  2. then I am iterating and getting the element on metro app

  3. Retrieving the properties of the UI element

    I have image and text item in side the list item. On click on that launch a webpage.

    list item, image and Text item doesn’t have Invoke Capability.so I am trying to get Clickable Point, so that I can click the point.I am also using Inspect.exe to see the UI element.in

    inspect.exe does show cliackable point for listitem, image and text item.but when i

    problematically trying to get it using GetClickablePoint() i am getting gotClickable = 0 and POINT field remains 0.hr = S=OK

    POINT clickable;   
    BOOL gotClickable;     
    hr = p1->GetClickablePoint(&clickable,&gotClickable);
    

I want to use the clickable point in the call to mouse_event

   VOID WINAPI mouse_event(__in  DWORD dwFlags, __in  DWORD dx, __in  DWORD dy, __in  DWORD dwData,
   __in  ULONG_PTR dwExtraInfo  );
  • 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-06-09T17:45:45+00:00Added an answer on June 9, 2026 at 5:45 pm

    Check to see if the item has a zero hwnd. This comes up often for me.

    You can still click by moving the Cursor to the middle of the element and sending a mouse click event.

    You can compute the location based on the bounding rectangle. You may need to convert client to screen coordinate, depending upon your situation.

    The bounding rectangle part is something like:

    x = left + (right - left) / 2
    y = top + (bottom - top) / 2 
    

    To convert to screen coords, you will have to use an element which does have an hwnd and apply the necessary offset.

    EDIT

    To place the cursor on the rectangle, I use PInvoke:

    Here is the stuff that I use (C#):

        public static void Click()
        {
            User32.mouse_event(WindowsConstants.MouseEventLeftDown, 0, 0, 0, IntPtr.Zero);
            User32.mouse_event(WindowsConstants.MouseEventLeftUp, 0, 0, 0, IntPtr.Zero);
        }
    
        public static void RightClick()
        {
            User32.mouse_event(WindowsConstants.MouseEventRightDown, 0, 0, 0, IntPtr.Zero);
            User32.mouse_event(WindowsConstants.MouseEventRightUp, 0, 0, 0, IntPtr.Zero);
    
        }
    
        public static void DoubleClick()
        {
            User32.mouse_event(WindowsConstants.MouseEventLeftDown, 0, 0, 0, IntPtr.Zero);
            User32.mouse_event(WindowsConstants.MouseEventLeftUp, 0, 0, 0, IntPtr.Zero);
            Thread.Sleep(150);
            User32.mouse_event(WindowsConstants.MouseEventLeftDown, 0, 0, 0, IntPtr.Zero);
            User32.mouse_event(WindowsConstants.MouseEventLeftUp, 0, 0, 0, IntPtr.Zero);
        }
    
        public const UInt32 MouseEventLeftDown = 0x0002;
        public const UInt32 MouseEventLeftUp = 0x0004;
        public const UInt32 MouseEventRightDown = 0x0008;
        public const UInt32 MouseEventRightUp = 0x00010;
    
    
        [DllImport("user32.dll")]
        public static extern void mouse_event(UInt32 dwFlags, UInt32 dx, UInt32 dy, UInt32 dwData, IntPtr dwExtraInfo);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing automation program using winforms webbrowser control. I am able to get the
I have a Metro app. I am developing a automation client. I want to
I'm trying to get into Android app developing. My first problem is actually getting
I am developing a Excel automation app that read and write to Excel spreadsheet.
I'm developing an offline web-app for a client of ours, designed to run on
Currently i'm developing an web automation system using WebBrowser control and AxWebBrowser control in
I'm developing an Android App using Phonegap. It's a question and answer game and
I'm developing printing solution for MS Office 2007. Office automation is not right for
While developing an application using gwt in ecliplse crashed. Now the server is running
For developing an devices monitor system, I am using a InetAdress isReachable method to

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.