It is not as simple as modifying a single line in the script.
If you don't already know what to do based on the above, it is probably too hard for you to try.
You would have to modify a macro called from the Master Script of the Window Marker. Yu would probably have to create new parameters so you can decide whether you want to display the Sill or the Head. If the choice is the Head, its value would have to be calculated.
Also, the Interface Script of the Element would have to be modified so that the custom interface also displays the Head option.
So this is several hours of work, even if you know GDL.
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27