UIAutomationClient.CUIAutomation a une méthode ElementFromPoint
https://msdn.microsoft.com/en-us/lib...(v=vs.85).aspx
mais impossible de l'utiliser j'obtiens un message d'erreur lors de la compilation
Pouvez vous m'expliquer comment l'utiliser ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 Sub testpoint() 'il faut ajouter une reference à UIAUTOMATIONCLIENT Dim uiAuto As New UIAutomationClient.CUIAutomation Dim elmRibbon As UIAutomationClient.IUIAutomationElement Dim pt As UIAutomationClient.tagPOINT pt.x = 541 pt.Y = 99 Set elmRibbon = uiAuto.ElementFromPoint(pt) End Sub
Partager