Edit - I have been too quick to write code in function nodes, so as an exercise I revised this to get rid of them all.
I think you need to use a context variable to store the fact that a "window was opened" message has arrived today.
Hopefully this works:
[{"id":"d7b0203.90d37e","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"d9f3808d.c4ace8","type":"group","z":"d7b0203.90d37e","style":{"stroke":"#999999","stroke-opacity":"1","fill":"none","fill-opacity":"1","label":true,"label-position":"nw","color":"#a4a4a4"},"nodes":["a92532d7.894f9","72294f47.69796","add41f94.2b58a","e1d652fb.00f47"],"x":14,"y":219,"w":572,"h":122},{"id":"785db242.dc1b7c","type":"inject","z":"d7b0203.90d37e","name":"At 11:00","props":[{"p":"payload"}],"repeat":"","crontab":"00 11 * * *","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":360,"y":100,"wires":[["2902cb0.878a7b6","955bf8cb.f55f4"]]},{"id":"f3d60ef3.fb9c48","type":"debug","z":"d7b0203.90d37e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":910,"y":120,"wires":[]},{"id":"c3c56327.76623","type":"mqtt in","z":"d7b0203.90d37e","name":"","topic":"window/open","qos":"2","datatype":"auto","broker":"4c682b3a.2ab5c4","nl":false,"rap":true,"rh":0,"x":90,"y":180,"wires":[["a8d980ee.7b15"]]},{"id":"131d7ac5.34188d","type":"debug","z":"d7b0203.90d37e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":910,"y":180,"wires":[]},{"id":"7a57e4a0.34ddb4","type":"inject","z":"d7b0203.90d37e","name":"At 00:00","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"00 00 * * *","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":360,"y":40,"wires":[["5f363354.716814"]]},{"id":"5f363354.716814","type":"change","z":"d7b0203.90d37e","name":"flow.windowMsg = false","rules":[{"t":"set","p":"windowMsg","pt":"flow","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":570,"y":40,"wires":[[]]},{"id":"2902cb0.878a7b6","type":"change","z":"d7b0203.90d37e","name":"flow.triggerTime = now","rules":[{"t":"set","p":"triggerTime","pt":"flow","to":"","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":80,"wires":[[]]},{"id":"a8d980ee.7b15","type":"change","z":"d7b0203.90d37e","name":"","rules":[{"t":"set","p":"timestamp","pt":"msg","to":"","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":290,"y":180,"wires":[["39b6204f.d87cf8"]]},{"id":"2f122b9d.1b931c","type":"change","z":"d7b0203.90d37e","name":"flow.windowMsg = true","rules":[{"t":"set","p":"windowMsg","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":700,"y":180,"wires":[["131d7ac5.34188d"]]},{"id":"39b6204f.d87cf8","type":"switch","z":"d7b0203.90d37e","name":"Before triggerTime?","property":"timestamp","propertyType":"msg","rules":[{"t":"lte","v":"triggerTime","vt":"flow"}],"checkall":"true","repair":false,"outputs":1,"x":490,"y":180,"wires":[["2f122b9d.1b931c"]]},{"id":"a92532d7.894f9","type":"inject","z":"d7b0203.90d37e","g":"d9f3808d.c4ace8","name":"Test - set triggerTime now + 20sec","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":300,"wires":[["72294f47.69796"]]},{"id":"72294f47.69796","type":"function","z":"d7b0203.90d37e","g":"d9f3808d.c4ace8","name":"","func":"flow.set('triggerTime', msg.payload + 20000);\nflow.set('windowMsg', false);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":500,"y":300,"wires":[[]]},{"id":"add41f94.2b58a","type":"inject","z":"d7b0203.90d37e","g":"d9f3808d.c4ace8","name":"","props":[{"p":"payload"}],"repeat":"5","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"test","payloadType":"str","x":110,"y":260,"wires":[["a8d980ee.7b15"]]},{"id":"e1d652fb.00f47","type":"comment","z":"d7b0203.90d37e","g":"d9f3808d.c4ace8","name":"Nodes for testing","info":"","x":280,"y":260,"wires":[]},{"id":"a58a32f7.948a6","type":"comment","z":"d7b0203.90d37e","name":"Midnight - reset windowMsg","info":"","x":140,"y":40,"wires":[]},{"id":"b4e0b175.ab7fa8","type":"comment","z":"d7b0203.90d37e","name":"This inject defines triggerTime","info":"","x":140,"y":100,"wires":[]},{"id":"955bf8cb.f55f4","type":"switch","z":"d7b0203.90d37e","name":"windowMsg false?","property":"windowMsg","propertyType":"flow","rules":[{"t":"false"}],"checkall":"true","repair":false,"outputs":1,"x":550,"y":120,"wires":[["9072ac08.77c3f"]]},{"id":"9072ac08.77c3f","type":"change","z":"d7b0203.90d37e","name":"Not Opened","rules":[{"t":"set","p":"payload","pt":"msg","to":"window was not opened before trigger time","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":730,"y":120,"wires":[["f3d60ef3.fb9c48"]]},{"id":"4c682b3a.2ab5c4","type":"mqtt-broker","name":"","broker":"127.0.0.1","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]