Thursday, October 28, 2021

AutoScroll using Python

 So there are times when you want your screen to autoscroll. Well I just have a function where I need to play a guitar and the song is too long for me to remember all the chords and I cannot scroll when I am playing the guitar. Hence the requirement. The solution was too naïve than what I thought it would. 


You pop up your favourite Python IDE and add import the package pyautogui  this is the Hero of our solution. 

For most of us using Windows with Powershell you should have python installed. So just goto your powershell and type py.exe 





Now install the pyautogui module. 

py -m pip install pyautogui

Now go to your python shell and write the below code. 



Hope this helps. 


Thanks,

Tushar