I added reference to UIAutomationTypes and to UIAutomationClient and use those imports
But I get an error: type "AutomationElement" is not defined when I use that code
I even get an error when I add
AutomationElement is not a member of System.Windows.Automation
what is wrong?
Code:
Imports System.Windows.Automation
Imports System.Runtime.InteropServices
Imports System.Text
Code:
Dim rootElement As AutomationElement = AutomationElement.FromHandle(hwnd)
Code:
using System.Windows.Automation.AutomationElement
what is wrong?