Why a room spray does nothing useful
The flies at your window are the few that found their way out of the void. The rest are behind the plaster, dormant, and nothing applied to a room reaches them. Treating the air in a bedroom repeatedly for months is the version of this job to avoid.
The emergence is driven by temperature, not by population. A sunny afternoon on a south wall warms the void and some of the occupants become active; a cold week produces none at all. So the number of flies at a window measures the weather more than it measures the infestation, and judging a treatment by it is unreliable.
A vacuum and, where it is bad, a light-based trap deal with the nuisance without putting product where people sleep. That is a deliberately modest answer, and it is the honest one for an insect that is sitting inside a wall cavity you cannot reach.
Reading which wall they are in
The room that produces flies is directly useful information. Overwintering sites are usually in the void immediately behind or above it, on the warmest face of the house, so an indoor observation points to a specific stretch of exterior soffit and wall.
That is why a household keeping a simple note through the winter ends up with a far better work list than any single inspection could produce. Which room, which window, roughly what time of day, and whether it was sunny: four details, and together they locate the void.
From outside, the corresponding clues are at the soffit return, the fascia joint and the top corners of the window frame, often places that have been repainted over an existing gap. A survey from a ladder on the identified face finds in twenty minutes what a walk around the whole building can miss entirely.
Why the attic clear-out matters
An accumulation of dead flies in insulation or along the eaves is food for other insects, including beetles whose larvae feed on dead material. Removing it closes off a secondary problem that tends to show up a season or two later.
There is a maintenance benefit too. Insulation that has been disturbed, matted or nested in performs worse than it should, and an attic visit that removes the accumulation is a chance to see the state of the insulation, the vent screening and the underside of the roof at the same time.
Access decides what is possible. A low, tight or poorly lit attic may not be safely enterable, and a technician will say so rather than guess at what is up there. Where that is the case, the work concentrates on the vents and the exterior, which can be reached from a ladder.
The yearly cycle and what to expect
Flies enter in autumn, sit through the cold, emerge on mild days from midwinter to early spring, then leave. Closure work done in summer therefore shows its result the following winter, and the winter in progress has to be managed by removal.
Because the larvae develop outdoors in soil, nothing done to a lawn realistically reduces the population either. This is unlike most pest work, where removing a food source or a harborage changes the pressure. Here the pressure is a feature of the surrounding ground, and the building is the only thing that can be changed.
That makes the closure work durable in a way a treatment never is. A soffit joint sealed properly keeps working every autumn after it is done, and the only maintenance is a look at the vent screening once a year. For the same reason it is worth doing well rather than quickly.