Can we automatically retrieve the intersecting objects set in a map?

Currently, if we want to get the intersecting objects in a map, we have to manually click on the tool.
Is there a way to automate that?