In a similar vein, many years ago I helped someone with a similar problem with a neighbour who had the volume too loud. As the aerial cable was accessible, I suggested he stick a pin through the neighbour's cable whenever the volume got too loud, and pull it out when the volume went down.
Sure enough, after a while the neighbour learnt their TV only worked if they kept the volume down in the evening.
Reminds me of Amelie's revenge in the movie.
I wish there was an easy solution like this for smoking "neighbours". Some sort of detection device that instantly closes my windows automatically and then "explodes" a nasty "stinking bomb" outside (e.g. automatic opening of a container with butyric acid or similar), so it smells worse than their smoke. Eventually their brains would connect smoking with nasty stinking and stop doing it.
But I wouldn't know where to start. :-\