I am searching a string in a specified region. If not found using hotkey Ctrl+pgdn i am scroling down and again checking the same. It it didn’t find till the end of scroll bar it should stop.
So how would it check if the scroll bar has reached the end. If this condition is not put then it will be an infinite loop.