Look into the Code how I have automated it!
Thanks to AdrShiro and his project: https://scratch.mit.edu/projects/794678681/