Articles → Python → 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
- Left
- Right
- Middle
import pyautogui
pyautogui.click(button='right')