'Python - Multiple Clicks at different location on screen at the same time

I have this idea but I don't even know where to start haha

Basically, Lets say I want to click these 2 locations

(50, 100) and (1000, 500)

I could just click them 1 by 1 like this

import pyautogui

pyautogui.click(50,100)
pyautogui.click(1000,500)

But what if I want to click both at the same time?

Is this possible at all?

I've heard of things such as "Multiboxing Bots" where the program is able to click on multiple places at once.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source