Articles → Python → Dragrel Function In Pyautogui
Dragrel Function In Pyautogui
Purpose
Example
import pyautogui
print(pyautogui.position())
pyautogui.dragRel(10,20, duration = 2)
print(pyautogui.position())
pyautogui.dragRel(100,200, duration = 2)
print(pyautogui.position())
Output
Click to Enlarge