a script for making hpix window funcs