I know exactly what you mean. I’ve done the exact same thing, although not with menstrual cramps.
I had a lot of pain in my teeth when I got fillings a few months and I would just concentrate on the pain and imagine is flowing out from my teeth and it really worked.
There you go people, you can literally think the pain away. :p