Enhanced selection limited between boundaries

Hello at all,

I was wondering whether it is possible to add a filter or something else for a selection to select all faces/lines or something else in a certain area/volume?

Or is it possible to simulate my mouse during a selection. I'm not a programmer, I hope I explained it well enough...

Best regards