- I am using Google Colab on my OS- Windows and Chromebook.
- Below is the simple code of pyautogui code, but still it’s not executing properly.
- As I tried this code on Anaconda (downloaded on my pc) and also on Google-Colab.
- Specifically I want to use pyautogui on Google-Colab (or its online alternatives) so I can use it from anywhere.
!pip install pyautogui
import pyautogui
#Size of the monitor
screenWidth, screenHeight = pyautogui.size()
after running this code, output is showing by Google-Colab is
<MagicMock name='mock.size()' id='134310165670752'>