Code: Select all
Sub Main
/echo ${Window[TradeskillWnd].FirstChild.Next.FirstChild.FirstChild.Next.Name}
/echo ${Window[${Window[TradeskillWnd].FirstChild.Next.FirstChild.FirstChild.Next.Name}].Name}
/echo ${Window[TradeskillWnd].FirstChild.Next.FirstChild.Name}
/echo ${Window[${Window[TradeskillWnd].FirstChild.Next.FirstChild.Name}].Name}
/return
Code: Select all
Sub Main
/declare windArray[20] Window
/declare level int outer 0
/call PrintWindow TradeskillWnd ""
/return
Sub PrintWindow(Window wind, spacing)
/declare tempstr string
/varset tempstr ${spacing}${wind}
/echo -${level}:${tempstr}
/declare tempWind ${wind}
/echo --Children: ${Window[${tempWind}].Children}
/echo --Siblings: ${Window[${tempWind}].Siblings}
/if (${Window[${tempWind}].Children} == NULL) {
/echo ${Window[${tempWind}]}
}
/if (${Window[${tempWind}].Children}) {
/call PrintWindow ${Window[${tempWind}].FirstChild.Name} ""
}
/if (${Window[${tempWind}].Siblings}) {
/call PrintWindow ${Window[${tempWind}].Next.Name} "--"
}
/return
Thanks

