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


Picture showing the output of the dragRel function in pyautogui
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, May 24, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250