point( = = pyautogui position(and again point( = = [ the -coordinate is at index the -coordinate is also in the attribute of courseyour return values will vary depending on where your mouse cursor is controlling mouse interaction now that you know how to move the mouse and figure out where it is on the screenyou're ready to start clickingdraggingand scrolling clicking the mouse to send virtual mouse click to your computercall the pyautogui click(method by defaultthis click uses the left mouse button and takes place wherever the mouse cursor is currently located you can pass xand -coordinates of the click as optional first and second arguments if you want it to take place somewhere other than the mouse' current position if you want to specify which mouse button to useinclude the button keyword argumentwith value of 'left''middle'or 'rightfor examplepyautogui click( button='left'will click the left mouse button at the coordinates ( )while pyautogui click( button='right'will perform right-click at ( enter the following into the interactive shellimport pyautogui pyautogui click( move mouse to ( and click you should see the mouse pointer move to near the top-left corner of your screen and click once full "clickis defined as pushing mouse button down and then releasing it back up without moving the cursor you can also perform click by calling pyautogui mousedown()which only pushes the mouse button downand pyautogui mouseup()which only releases the button these functions have the same arguments as click()and in factthe click(function is just convenient wrapper around these two function calls as further conveniencethe pyautogui doubleclick(function will perform two clicks with the left mouse buttonwhile the pyautogui rightclick(and pyautogui middleclick(functions will perform click with the right and middle mouse buttonsrespectively