Click here to Skip to main content
15,903,385 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

How to use the drag and drop in python.

I have used PyAutoGUI package in Python to use. But the problem i have faced is, its recognising the object, when dragging. But its not recognising the object where dropping.

pyautogui.moveTo(550, 450)
time.sleep(1)
pyautogui.dragTo(1200, 530, 5, button='left')
#pyautogui.dragTo(x-pos, y-pos, time to drag, button='left')

Moving the cursor position to drag
Then dragging the object to the position

Can anybody help here

Regards,
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900