Lets assume that these are the only line codes i have
var listBox = Aliases["FusionDesktop"]["HwndSource_MainWindow"]["MainWindow"]["Grid"]["TabControl"]["Grid"]["ContentPanel"]["PART_SelectedContentHost"]["AssemblyViewTabControl"]["Grid"]["Grid2"]["UserControl"]["ScrollableTabControlScreen"]["DockPanel"]["ContentControl"]["DocumentViewer"]["m_thumbnails"]
var item = listBox["Items"]["Item"](SelectedPage);
listBox["ScrollIntoView"](item)
if i have 10 items in the list box and SelectedPage=1 the selected item will be truly 1 but,if SelectedPage=10 the script throw an error,see attached file.
so i can't understand how do i select the last item?????!!!!!!
can you please explain why is that happen?
thanks