Human: How to fix a broken window latch? Assistant: 

1. Start by checking the screws and hinges to ensure they are all secure. If any of them are loose, tighten them up with a screwdriver.
2. Check to see if the latch is stuck in a certain position. If so, use a lubricant such as WD-40 or a silicone spray to loosen it.
3. If the latch is broken, you may need to replace it. To do so, measure the dimensions of the existing latch and find a replacement that is the same size.
4. Once you have the replacement latch, remove the old one and use a screwdriver to install the new one. Make sure to securely tighten the screws.
5. Test the latch to make sure it is secure and functions properly.