int w=win("Untitled - Notepad""Notepad") Acc a.Find(w "PUSHBUTTON""Page down""class=Edit[]id=15"0x1025);;the bottom part of scrollbar, scrolls one page when clicked rep ,1 ,if(!IsWindow(w))break ,if(a.State&STATE_SYSTEM_INVISIBLE)out"reached end" ,elseout"not reached end"