Situation
# 鍵盤滑鼠重複執行相同的動作
Automatically repeat the same keyboard and mouse actions.
Solution - Install
(Windows Environment)
[1]
Install python and change path variable.
[2]
# 使用pip安裝pyautogui
python -m pip install pyautogui
# 如果沒有安裝pip的話
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
Check - Pyautogui
# 引用函式庫
import pyautogui
import time
# 決定想要按下的按鍵並設定停頓時間
pyautogui.press('A')
time.sleep(2)