I make thatDescolada wrote: ↑30 Jan 2023, 00:26@mora145, I guess if FindByPath isn't working out at all, then you could use as a workaround hello.FindByPath("p.10")? Or something like this might work as well:Code: Select all
TextTW := cUIA.CreateTreeWalker("Type=Text") MsgBox, % TextTW.GetLastChildElement(hello.FindByPath("p")).Dump()
Code: Select all
phoneButton:="דברו איתי"
otherText := otherText.GetCurrentPropertyValueEx("Name")
Loop, 10
{
walker := A_Index + 7
otherText := father.FindByPath(walker)
otherText := otherText.GetCurrentPropertyValueEx("Name")
if (otherText=phoneButton)
{
otherText := father.FindByPath(walker+2)
otherText := otherText.GetCurrentPropertyValueEx("Name")
break
}
}