Articles → PyAutoGUI → Click Function In Pyautogui

Click Function In Pyautogui






Purpose





Example


import pyautogui

pyautogui.moveTo(700,500)

pyautogui.click()



Specifying Coordinates In Click Function






import pyautogui

pyautogui.click(700,500)





Clicks Attribute




import pyautogui
pyautogui.click(clicks=2)





Interval Attribute In Click Function






import pyautogui

pyautogui.click(700, 500,clicks=2, interval=0.25)





Button Attribute In Click Function




  1. Left
  2. Right
  3. Middle


import pyautogui

pyautogui.click(button='right')





Posted By  -  Karan Gupta
 
Posted On  -  Tuesday, May 21, 2019
 
Updated On  -  Wednesday, May 29, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250