Applescript- I made an auto scrolling code and need to know how to stop it
I have redone the script, again. That code before was ridiculous tbh. I got a little ahead of myself... Let's try this again... Save this as a "stay open" application again, named anything. You'll just have to quit it when you want to stop scrolling, and start it up again when you want to continue. I advise putting it on your Dock for easy access:

global script_PID
on run
    tell application "Google Chrome" to activate
    delay 1
    tell me to activate
end run

on idle
    tell application "Google Chrome"
        tell active tab of front window
            set urlName to URL
            if (execute javascript "if (window.pageYOffset + window.innerHeight &gt;= document.body.clientHeight){true;}else{false;}") is false then
                execute javascript "window.scrollBy(0,window.innerHeight - 40);"
            else
                tell me to quit
            end if
        end tell
    end tell
    return 1
end idle


Tell me if you have any issues with this.