Wall finish on both Vertical sides of window openings

Hello,
With help of this group and precious advices i made a script for wall and floor finishes and works good. It is taking rooms from project as input and do wall and floor finishes. I am just having a problem in window openings and i want wall finish there too as sown in attached picture.

On both these sides i want wall finish but not the whole width of wall and upto where the window frame is attached. Any help would be appreciated.