import clr
import sys
from System.Diagnostics import *
from System.Threading import *
clr.AddReference("UIAutomationClient")
clr.AddReference("UIAutomationTypes")
from System.Windows.Automation import *
#
Thread.Sleep(1000)
# [5]---------------------------------------------------------------------------
aeForm = AutomationElement.FromHandle(app.MainWindowHandle)
propCondition = PropertyCondition(AutomationElement.AutomationIdProperty, "135")
mElement = aeForm.FindFirst(TreeScope.Subtree, propCondition)
ipBtnAdd = mElement.GetCurrentPattern(InvokePattern.Pattern)
ipBtnAdd.Invoke()
# [+]---------------------------------------------------------------------------
aeForm = AutomationElement.FromHandle(app.MainWindowHandle)
propCondition = PropertyCondition(AutomationElement.AutomationIdProperty, "93")
mElement = aeForm.FindFirst(TreeScope.Subtree, propCondition)
ipBtnAdd = mElement.GetCurrentPattern(InvokePattern.Pattern)
ipBtnAdd.Invoke()
# [2]---------------------------------------------------------------------------
aeForm = AutomationElement.FromHandle(app.MainWindowHandle)
propCondition = PropertyCondition(AutomationElement.AutomationIdProperty, "132")
mElement = aeForm.FindFirst(TreeScope.Subtree, propCondition)
ipBtnAdd = mElement.GetCurrentPattern(InvokePattern.Pattern)
ipBtnAdd.Invoke()
# [=]---------------------------------------------------------------------------
aeForm = AutomationElement.FromHandle(app.MainWindowHandle)
propCondition = PropertyCondition(AutomationElement.AutomationIdProperty, "121")
mElement = aeForm.FindFirst(TreeScope.Subtree, propCondition)
ipBtnAdd = mElement.GetCurrentPattern(InvokePattern.Pattern)
ipBtnAdd.Invoke()
# [Result]-----------------------------------------------------------------------
propCondition = PropertyCondition(AutomationElement.AutomationIdProperty, "150");
mElement = aeForm.FindFirst(TreeScope.Subtree, propCondition);
import sys
from System.Diagnostics import *
from System.Threading import *
clr.AddReference("UIAutomationClient")
clr.AddReference("UIAutomationTypes")
from System.Windows.Automation import *
#
Thread.Sleep(1000)
# [5]---------------------------------------------------------------------------
aeForm = AutomationElement.FromHandle(app.MainWindowHandle)
propCondition = PropertyCondition(AutomationElement.AutomationIdProperty, "135")
mElement = aeForm.FindFirst(TreeScope.Subtree, propCondition)
ipBtnAdd = mElement.GetCurrentPattern(InvokePattern.Pattern)
ipBtnAdd.Invoke()
# [+]---------------------------------------------------------------------------
aeForm = AutomationElement.FromHandle(app.MainWindowHandle)
propCondition = PropertyCondition(AutomationElement.AutomationIdProperty, "93")
mElement = aeForm.FindFirst(TreeScope.Subtree, propCondition)
ipBtnAdd = mElement.GetCurrentPattern(InvokePattern.Pattern)
ipBtnAdd.Invoke()
# [2]---------------------------------------------------------------------------
aeForm = AutomationElement.FromHandle(app.MainWindowHandle)
propCondition = PropertyCondition(AutomationElement.AutomationIdProperty, "132")
mElement = aeForm.FindFirst(TreeScope.Subtree, propCondition)
ipBtnAdd = mElement.GetCurrentPattern(InvokePattern.Pattern)
ipBtnAdd.Invoke()
# [=]---------------------------------------------------------------------------
aeForm = AutomationElement.FromHandle(app.MainWindowHandle)
propCondition = PropertyCondition(AutomationElement.AutomationIdProperty, "121")
mElement = aeForm.FindFirst(TreeScope.Subtree, propCondition)
ipBtnAdd = mElement.GetCurrentPattern(InvokePattern.Pattern)
ipBtnAdd.Invoke()
# [Result]-----------------------------------------------------------------------
propCondition = PropertyCondition(AutomationElement.AutomationIdProperty, "150");
mElement = aeForm.FindFirst(TreeScope.Subtree, propCondition);
print(mElement.Current.Name);