Looking for a Window Frame script?

Has anyone written a script that extrudes window and door frames correctly?