docs: def click(self, target=None, modifiers=""):
          """ Moves the cursor to the target location and clicks the default mouse button. """
          if target is None:
              target = self._lastMatch or self # Whichever one is not None
  
          target_location = None
          if isinstance(target, Pattern):
              target_location = self.find(target).getTarget()
          elif isinstance(target, basestring):
              target_location = self.find(target).getTarget()
          elif isinstance(target, Match):
              target_location = target.getTarget()
          elif isinstance(target, Region):
              target_location = target.getCenter()
          elif isinstance(target, Location):
              target_location = target
          else:
              raise TypeError("click expected Pattern, String, Match, Region, or Location object")
          if modifiers != "":
              keyboard.keyDown(modifiers)
  
          Mouse.moveSpeed(target_location, Settings.MoveMouseDelay)
          time.sleep(0.1) # For responsiveness
          if Settings.ClickDelay > 0:
              time.sleep(min(1.0, Settings.ClickDelay))
              Settings.ClickDelay = 0.0
          Mouse.click()
          time.sleep(0.1)
  
          if modifiers != 0:
              keyboard.keyUp(modifiers)
          Debug.history("Clicked at {}".format(target_location))