Margaret Lee who passed away last month (see the tribute for her here) was a dear sister in Christ. He husband pre-deceased her in 2009. He suffered with mental frailty. She once recounted to me how on one occasion when he was suffering they set themselves to pray for all the pregnant ladies in the church. The thinking being that to switch attention to others can help offset the malaise to our own soul caused by such mental onslaughts.
This prompts me to think of the general principle that we can so often start to get a right perspective in life when we focus on the welfare of others. One most helpful way is to pray for others and their needs and situations. But more generally when we start to focus on the needs and others we can be helped by switching our attention from ourselves to others.
If you are suffering a degree of self-pity and dismay about your own situation why not get on and show interest in other people? Why not get praying and giving thanks to God for others?