How to get hidden/private UI element from UIAutomation, I can see it in Spy++ but can't get to it in code, only it's parents and siblingsHow do I get the application exit code from a Windows command line?Toolbar with VLC ActiveX in VB.NETHow can I get functionality similar to Spy++ in my C# app?DirectX DesktopAutomationElement: cached element (via GetCachedChildren) to “live” elementHow can you zip or unzip from the script using ONLY Windows' built-in capabilities?How can I see properties of hidden label?How to get hidden windows handle of the windows that show hidden system tray iconsCreate a divx-encoded avi from frames using opencvHow to get the parent structure as Spy++ gives it?

General method to output dd1,d2,d3...dn in AnyDice

Does Bank Manager's discretion still exist in Mortgage Lending

If I travelled back in time to invest in X company to make a fortune, roughly what is the probability that it would fail?

Drawing Maps; flat distortion

Why does it seem the best way to make a living is to invest in real estate?

Avoiding dust scattering when you drill

What's the correct way to determine turn order in this situation?

Are there types of animals that can't make the trip to space? (physiologically)

Manager told a colleague of mine I was getting fired soon

Shell Sort, Insertion Sort, Bubble Sort, Selection Sort Algorithms (Python)

Why is music is taught by reading sheet music?

Notation clarity question for a conglomerate of accidentals

How dangerous are my worn rims?

What does "execute a hard copy" mean?

Is there a way to make an animal companion able to read a language?

Does the US Armed Forces refuse to recruit anyone with an IQ less than 83?

Why does `FindFit` fail so badly in this simple case?

Can I bring this power bank on board the aircraft?

Can a passenger predict that an airline or a tour operator is about to go bankrupt?

Ĉi tie or ĉi-tie? Why do people sometimes hyphenate ĉi tie?

What action is recommended if your accommodation refuses to let you leave without paying additional fees?

What is the difference between increasing volume and increasing gain?

Why most footers have a background color as a divider of section?

When Vesuvan Shapeshifter copies turn face up replacement effects, why do they work?



How to get hidden/private UI element from UIAutomation, I can see it in Spy++ but can't get to it in code, only it's parents and siblings


How do I get the application exit code from a Windows command line?Toolbar with VLC ActiveX in VB.NETHow can I get functionality similar to Spy++ in my C# app?DirectX DesktopAutomationElement: cached element (via GetCachedChildren) to “live” elementHow can you zip or unzip from the script using ONLY Windows' built-in capabilities?How can I see properties of hidden label?How to get hidden windows handle of the windows that show hidden system tray iconsCreate a divx-encoded avi from frames using opencvHow to get the parent structure as Spy++ gives it?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









0















I'm trying to use System.Windows.Automation to get to a UI element in VLC media player (specifically the status box in the left-most corner that shows the filename of the video currently being played). I can get the parent element and a sibling element but in Spy++ all of the elements that have a dimmed icon next to them I cannot reach in code... I'm assuming that dimmed icon means they are private or hidden or something like that. Here is an image showing what I mean:



enter image description here



Notice that I have a reference to the parent with the handle 0x30826, and I do a FindAll()* from that and end up with only one result, a reference to the child with the handle 0x30858. You can see in Spy++ there are 5 children of 0x30826, but only one of them, the one that I get when I do FindAll, has a fully black icon, the others have a gray icon and I cannot get to them. Notice also that the one I want is 0x20908 and it has a grey icon...



How can I get to this in code?



*This is the code I'm using to try to get all the children of 0x30826:



 Dim aeDesktop As AutomationElement
Dim aeVLC As AutomationElement
Dim c As AutomationElementCollection
Dim cd As New AndCondition(New PropertyCondition(AutomationElement.IsEnabledProperty, True), New PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.StatusBar))

aeVLC = aeDesktop.FindFirst(TreeScope.Children, New PropertyCondition(AutomationElement.NameProperty, "got s01e01.avi - VLC media player"))

c = aeVLC.FindAll(TreeScope.Children, cd)

c = c(0).FindAll(TreeScope.Children, Condition.TrueCondition)


The first FindAll() gives me only 0x30826, which is fine because that's what I want, but the second FindAll, with no conditions specified, gives only 0x30858 when I can see that plus 4 others in Spy++, including the one that I want.










share|improve this question
































    0















    I'm trying to use System.Windows.Automation to get to a UI element in VLC media player (specifically the status box in the left-most corner that shows the filename of the video currently being played). I can get the parent element and a sibling element but in Spy++ all of the elements that have a dimmed icon next to them I cannot reach in code... I'm assuming that dimmed icon means they are private or hidden or something like that. Here is an image showing what I mean:



    enter image description here



    Notice that I have a reference to the parent with the handle 0x30826, and I do a FindAll()* from that and end up with only one result, a reference to the child with the handle 0x30858. You can see in Spy++ there are 5 children of 0x30826, but only one of them, the one that I get when I do FindAll, has a fully black icon, the others have a gray icon and I cannot get to them. Notice also that the one I want is 0x20908 and it has a grey icon...



    How can I get to this in code?



    *This is the code I'm using to try to get all the children of 0x30826:



     Dim aeDesktop As AutomationElement
    Dim aeVLC As AutomationElement
    Dim c As AutomationElementCollection
    Dim cd As New AndCondition(New PropertyCondition(AutomationElement.IsEnabledProperty, True), New PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.StatusBar))

    aeVLC = aeDesktop.FindFirst(TreeScope.Children, New PropertyCondition(AutomationElement.NameProperty, "got s01e01.avi - VLC media player"))

    c = aeVLC.FindAll(TreeScope.Children, cd)

    c = c(0).FindAll(TreeScope.Children, Condition.TrueCondition)


    The first FindAll() gives me only 0x30826, which is fine because that's what I want, but the second FindAll, with no conditions specified, gives only 0x30858 when I can see that plus 4 others in Spy++, including the one that I want.










    share|improve this question




























      0












      0








      0








      I'm trying to use System.Windows.Automation to get to a UI element in VLC media player (specifically the status box in the left-most corner that shows the filename of the video currently being played). I can get the parent element and a sibling element but in Spy++ all of the elements that have a dimmed icon next to them I cannot reach in code... I'm assuming that dimmed icon means they are private or hidden or something like that. Here is an image showing what I mean:



      enter image description here



      Notice that I have a reference to the parent with the handle 0x30826, and I do a FindAll()* from that and end up with only one result, a reference to the child with the handle 0x30858. You can see in Spy++ there are 5 children of 0x30826, but only one of them, the one that I get when I do FindAll, has a fully black icon, the others have a gray icon and I cannot get to them. Notice also that the one I want is 0x20908 and it has a grey icon...



      How can I get to this in code?



      *This is the code I'm using to try to get all the children of 0x30826:



       Dim aeDesktop As AutomationElement
      Dim aeVLC As AutomationElement
      Dim c As AutomationElementCollection
      Dim cd As New AndCondition(New PropertyCondition(AutomationElement.IsEnabledProperty, True), New PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.StatusBar))

      aeVLC = aeDesktop.FindFirst(TreeScope.Children, New PropertyCondition(AutomationElement.NameProperty, "got s01e01.avi - VLC media player"))

      c = aeVLC.FindAll(TreeScope.Children, cd)

      c = c(0).FindAll(TreeScope.Children, Condition.TrueCondition)


      The first FindAll() gives me only 0x30826, which is fine because that's what I want, but the second FindAll, with no conditions specified, gives only 0x30858 when I can see that plus 4 others in Spy++, including the one that I want.










      share|improve this question
















      I'm trying to use System.Windows.Automation to get to a UI element in VLC media player (specifically the status box in the left-most corner that shows the filename of the video currently being played). I can get the parent element and a sibling element but in Spy++ all of the elements that have a dimmed icon next to them I cannot reach in code... I'm assuming that dimmed icon means they are private or hidden or something like that. Here is an image showing what I mean:



      enter image description here



      Notice that I have a reference to the parent with the handle 0x30826, and I do a FindAll()* from that and end up with only one result, a reference to the child with the handle 0x30858. You can see in Spy++ there are 5 children of 0x30826, but only one of them, the one that I get when I do FindAll, has a fully black icon, the others have a gray icon and I cannot get to them. Notice also that the one I want is 0x20908 and it has a grey icon...



      How can I get to this in code?



      *This is the code I'm using to try to get all the children of 0x30826:



       Dim aeDesktop As AutomationElement
      Dim aeVLC As AutomationElement
      Dim c As AutomationElementCollection
      Dim cd As New AndCondition(New PropertyCondition(AutomationElement.IsEnabledProperty, True), New PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.StatusBar))

      aeVLC = aeDesktop.FindFirst(TreeScope.Children, New PropertyCondition(AutomationElement.NameProperty, "got s01e01.avi - VLC media player"))

      c = aeVLC.FindAll(TreeScope.Children, cd)

      c = c(0).FindAll(TreeScope.Children, Condition.TrueCondition)


      The first FindAll() gives me only 0x30826, which is fine because that's what I want, but the second FindAll, with no conditions specified, gives only 0x30858 when I can see that plus 4 others in Spy++, including the one that I want.







      windows vb.net ui-automation spy++






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 28 at 22:01









      Idle_Mind

      25.7k2 gold badges17 silver badges25 bronze badges




      25.7k2 gold badges17 silver badges25 bronze badges










      asked Mar 28 at 21:04









      CHollman82CHollman82

      3457 silver badges24 bronze badges




      3457 silver badges24 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          1







          +100









          You are really handicapping your efforts by using Spy++ instead of the Inspect Program. Using Inspect, you can easily see that the target element is a text element parented to a status bar element that is parented to the main window element.



          VLC in Inspect



          Using that information, getting a reference to the target text element is straight forward. Start by getting the main window, then its status bar and finally the first text element of the status bar.



          ' find the VLC process 
          Dim targets As Process() = Process.GetProcessesByName("vlc")

          If targets.Length > 0 Then

          ' assume its the 1st process
          Dim vlcMainWindowHandle As IntPtr = targets(0).MainWindowHandle

          ' release all processes obtained
          For Each p As Process In targets
          p.Dispose()
          Next

          ' use vlcMainWindowHandle to get application window element
          Dim vlcMain As AutomationElement = AutomationElement.FromHandle(vlcMainWindowHandle)

          ' get the statusbar
          Dim getStatusBarCondition As Condition = New PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.StatusBar)
          Dim statusBar As AutomationElement = vlcMain.FindFirst(TreeScope.Children, getStatusBarCondition)

          ' get the 1st textbox in the statusbar
          Dim getTextBoxCondition As Condition = New PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.Text)
          Dim targetTextBox As AutomationElement = statusBar.FindFirst(TreeScope.Children, getTextBoxCondition)

          ' normally you use either a TextPattern.Pattern or ValuePattern.Pattern
          ' to obtain the text, but this textbox exposes neither and it uses the
          ' the Name property for the text.

          Dim textYouWant As String = targetTextBox.Current.Name

          End If





          share|improve this answer

























          • Thank you, I awarded you the bounty even though it doesn't quite work for me. Breaking on the last line "targetTextBox" equals nothing.

            – CHollman82
            Apr 4 at 13:43











          • Nevermind, I had to restart VLC for some reason and then it worked, but it found the textbox containing the time index so I had to use FindAll instead of FindFirst. Thanks again!

            – CHollman82
            Apr 4 at 13:57











          • @CHollman82, the joys of scrapping information and trying to build in resiliency. I guess that you could assume that it would be the left most text element and use something like this: Dim targetTextBox As AutomationElement = Enumerable.OrderBy(statusBar.FindAll(TreeScope.Children, getTextBoxCondition).Cast(Of AutomationElement), Function(el) el.Current.BoundingRectangle.Left).FirstOrDefault

            – TnTinMn
            Apr 4 at 15:01












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55406817%2fhow-to-get-hidden-private-ui-element-from-uiautomation-i-can-see-it-in-spy-bu%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1







          +100









          You are really handicapping your efforts by using Spy++ instead of the Inspect Program. Using Inspect, you can easily see that the target element is a text element parented to a status bar element that is parented to the main window element.



          VLC in Inspect



          Using that information, getting a reference to the target text element is straight forward. Start by getting the main window, then its status bar and finally the first text element of the status bar.



          ' find the VLC process 
          Dim targets As Process() = Process.GetProcessesByName("vlc")

          If targets.Length > 0 Then

          ' assume its the 1st process
          Dim vlcMainWindowHandle As IntPtr = targets(0).MainWindowHandle

          ' release all processes obtained
          For Each p As Process In targets
          p.Dispose()
          Next

          ' use vlcMainWindowHandle to get application window element
          Dim vlcMain As AutomationElement = AutomationElement.FromHandle(vlcMainWindowHandle)

          ' get the statusbar
          Dim getStatusBarCondition As Condition = New PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.StatusBar)
          Dim statusBar As AutomationElement = vlcMain.FindFirst(TreeScope.Children, getStatusBarCondition)

          ' get the 1st textbox in the statusbar
          Dim getTextBoxCondition As Condition = New PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.Text)
          Dim targetTextBox As AutomationElement = statusBar.FindFirst(TreeScope.Children, getTextBoxCondition)

          ' normally you use either a TextPattern.Pattern or ValuePattern.Pattern
          ' to obtain the text, but this textbox exposes neither and it uses the
          ' the Name property for the text.

          Dim textYouWant As String = targetTextBox.Current.Name

          End If





          share|improve this answer

























          • Thank you, I awarded you the bounty even though it doesn't quite work for me. Breaking on the last line "targetTextBox" equals nothing.

            – CHollman82
            Apr 4 at 13:43











          • Nevermind, I had to restart VLC for some reason and then it worked, but it found the textbox containing the time index so I had to use FindAll instead of FindFirst. Thanks again!

            – CHollman82
            Apr 4 at 13:57











          • @CHollman82, the joys of scrapping information and trying to build in resiliency. I guess that you could assume that it would be the left most text element and use something like this: Dim targetTextBox As AutomationElement = Enumerable.OrderBy(statusBar.FindAll(TreeScope.Children, getTextBoxCondition).Cast(Of AutomationElement), Function(el) el.Current.BoundingRectangle.Left).FirstOrDefault

            – TnTinMn
            Apr 4 at 15:01















          1







          +100









          You are really handicapping your efforts by using Spy++ instead of the Inspect Program. Using Inspect, you can easily see that the target element is a text element parented to a status bar element that is parented to the main window element.



          VLC in Inspect



          Using that information, getting a reference to the target text element is straight forward. Start by getting the main window, then its status bar and finally the first text element of the status bar.



          ' find the VLC process 
          Dim targets As Process() = Process.GetProcessesByName("vlc")

          If targets.Length > 0 Then

          ' assume its the 1st process
          Dim vlcMainWindowHandle As IntPtr = targets(0).MainWindowHandle

          ' release all processes obtained
          For Each p As Process In targets
          p.Dispose()
          Next

          ' use vlcMainWindowHandle to get application window element
          Dim vlcMain As AutomationElement = AutomationElement.FromHandle(vlcMainWindowHandle)

          ' get the statusbar
          Dim getStatusBarCondition As Condition = New PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.StatusBar)
          Dim statusBar As AutomationElement = vlcMain.FindFirst(TreeScope.Children, getStatusBarCondition)

          ' get the 1st textbox in the statusbar
          Dim getTextBoxCondition As Condition = New PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.Text)
          Dim targetTextBox As AutomationElement = statusBar.FindFirst(TreeScope.Children, getTextBoxCondition)

          ' normally you use either a TextPattern.Pattern or ValuePattern.Pattern
          ' to obtain the text, but this textbox exposes neither and it uses the
          ' the Name property for the text.

          Dim textYouWant As String = targetTextBox.Current.Name

          End If





          share|improve this answer

























          • Thank you, I awarded you the bounty even though it doesn't quite work for me. Breaking on the last line "targetTextBox" equals nothing.

            – CHollman82
            Apr 4 at 13:43











          • Nevermind, I had to restart VLC for some reason and then it worked, but it found the textbox containing the time index so I had to use FindAll instead of FindFirst. Thanks again!

            – CHollman82
            Apr 4 at 13:57











          • @CHollman82, the joys of scrapping information and trying to build in resiliency. I guess that you could assume that it would be the left most text element and use something like this: Dim targetTextBox As AutomationElement = Enumerable.OrderBy(statusBar.FindAll(TreeScope.Children, getTextBoxCondition).Cast(Of AutomationElement), Function(el) el.Current.BoundingRectangle.Left).FirstOrDefault

            – TnTinMn
            Apr 4 at 15:01













          1







          +100







          1







          +100



          1






          +100





          You are really handicapping your efforts by using Spy++ instead of the Inspect Program. Using Inspect, you can easily see that the target element is a text element parented to a status bar element that is parented to the main window element.



          VLC in Inspect



          Using that information, getting a reference to the target text element is straight forward. Start by getting the main window, then its status bar and finally the first text element of the status bar.



          ' find the VLC process 
          Dim targets As Process() = Process.GetProcessesByName("vlc")

          If targets.Length > 0 Then

          ' assume its the 1st process
          Dim vlcMainWindowHandle As IntPtr = targets(0).MainWindowHandle

          ' release all processes obtained
          For Each p As Process In targets
          p.Dispose()
          Next

          ' use vlcMainWindowHandle to get application window element
          Dim vlcMain As AutomationElement = AutomationElement.FromHandle(vlcMainWindowHandle)

          ' get the statusbar
          Dim getStatusBarCondition As Condition = New PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.StatusBar)
          Dim statusBar As AutomationElement = vlcMain.FindFirst(TreeScope.Children, getStatusBarCondition)

          ' get the 1st textbox in the statusbar
          Dim getTextBoxCondition As Condition = New PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.Text)
          Dim targetTextBox As AutomationElement = statusBar.FindFirst(TreeScope.Children, getTextBoxCondition)

          ' normally you use either a TextPattern.Pattern or ValuePattern.Pattern
          ' to obtain the text, but this textbox exposes neither and it uses the
          ' the Name property for the text.

          Dim textYouWant As String = targetTextBox.Current.Name

          End If





          share|improve this answer













          You are really handicapping your efforts by using Spy++ instead of the Inspect Program. Using Inspect, you can easily see that the target element is a text element parented to a status bar element that is parented to the main window element.



          VLC in Inspect



          Using that information, getting a reference to the target text element is straight forward. Start by getting the main window, then its status bar and finally the first text element of the status bar.



          ' find the VLC process 
          Dim targets As Process() = Process.GetProcessesByName("vlc")

          If targets.Length > 0 Then

          ' assume its the 1st process
          Dim vlcMainWindowHandle As IntPtr = targets(0).MainWindowHandle

          ' release all processes obtained
          For Each p As Process In targets
          p.Dispose()
          Next

          ' use vlcMainWindowHandle to get application window element
          Dim vlcMain As AutomationElement = AutomationElement.FromHandle(vlcMainWindowHandle)

          ' get the statusbar
          Dim getStatusBarCondition As Condition = New PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.StatusBar)
          Dim statusBar As AutomationElement = vlcMain.FindFirst(TreeScope.Children, getStatusBarCondition)

          ' get the 1st textbox in the statusbar
          Dim getTextBoxCondition As Condition = New PropertyCondition(AutomationElement.ControlTypeProperty, ControlType.Text)
          Dim targetTextBox As AutomationElement = statusBar.FindFirst(TreeScope.Children, getTextBoxCondition)

          ' normally you use either a TextPattern.Pattern or ValuePattern.Pattern
          ' to obtain the text, but this textbox exposes neither and it uses the
          ' the Name property for the text.

          Dim textYouWant As String = targetTextBox.Current.Name

          End If






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 2 at 15:51









          TnTinMnTnTinMn

          8,6363 gold badges12 silver badges32 bronze badges




          8,6363 gold badges12 silver badges32 bronze badges















          • Thank you, I awarded you the bounty even though it doesn't quite work for me. Breaking on the last line "targetTextBox" equals nothing.

            – CHollman82
            Apr 4 at 13:43











          • Nevermind, I had to restart VLC for some reason and then it worked, but it found the textbox containing the time index so I had to use FindAll instead of FindFirst. Thanks again!

            – CHollman82
            Apr 4 at 13:57











          • @CHollman82, the joys of scrapping information and trying to build in resiliency. I guess that you could assume that it would be the left most text element and use something like this: Dim targetTextBox As AutomationElement = Enumerable.OrderBy(statusBar.FindAll(TreeScope.Children, getTextBoxCondition).Cast(Of AutomationElement), Function(el) el.Current.BoundingRectangle.Left).FirstOrDefault

            – TnTinMn
            Apr 4 at 15:01

















          • Thank you, I awarded you the bounty even though it doesn't quite work for me. Breaking on the last line "targetTextBox" equals nothing.

            – CHollman82
            Apr 4 at 13:43











          • Nevermind, I had to restart VLC for some reason and then it worked, but it found the textbox containing the time index so I had to use FindAll instead of FindFirst. Thanks again!

            – CHollman82
            Apr 4 at 13:57











          • @CHollman82, the joys of scrapping information and trying to build in resiliency. I guess that you could assume that it would be the left most text element and use something like this: Dim targetTextBox As AutomationElement = Enumerable.OrderBy(statusBar.FindAll(TreeScope.Children, getTextBoxCondition).Cast(Of AutomationElement), Function(el) el.Current.BoundingRectangle.Left).FirstOrDefault

            – TnTinMn
            Apr 4 at 15:01
















          Thank you, I awarded you the bounty even though it doesn't quite work for me. Breaking on the last line "targetTextBox" equals nothing.

          – CHollman82
          Apr 4 at 13:43





          Thank you, I awarded you the bounty even though it doesn't quite work for me. Breaking on the last line "targetTextBox" equals nothing.

          – CHollman82
          Apr 4 at 13:43













          Nevermind, I had to restart VLC for some reason and then it worked, but it found the textbox containing the time index so I had to use FindAll instead of FindFirst. Thanks again!

          – CHollman82
          Apr 4 at 13:57





          Nevermind, I had to restart VLC for some reason and then it worked, but it found the textbox containing the time index so I had to use FindAll instead of FindFirst. Thanks again!

          – CHollman82
          Apr 4 at 13:57













          @CHollman82, the joys of scrapping information and trying to build in resiliency. I guess that you could assume that it would be the left most text element and use something like this: Dim targetTextBox As AutomationElement = Enumerable.OrderBy(statusBar.FindAll(TreeScope.Children, getTextBoxCondition).Cast(Of AutomationElement), Function(el) el.Current.BoundingRectangle.Left).FirstOrDefault

          – TnTinMn
          Apr 4 at 15:01





          @CHollman82, the joys of scrapping information and trying to build in resiliency. I guess that you could assume that it would be the left most text element and use something like this: Dim targetTextBox As AutomationElement = Enumerable.OrderBy(statusBar.FindAll(TreeScope.Children, getTextBoxCondition).Cast(Of AutomationElement), Function(el) el.Current.BoundingRectangle.Left).FirstOrDefault

          – TnTinMn
          Apr 4 at 15:01


















          draft saved

          draft discarded















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55406817%2fhow-to-get-hidden-private-ui-element-from-uiautomation-i-can-see-it-in-spy-bu%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해