How do you deal with hand pain?

What do you do after a long day of studying and your hand is ready to fall off? I think I have carport tunnel. I put pain reliever cream on at night and also wrap it with an ace bandage but it hurts again the next day. I'm sure the texting with my thumbs doesn't help either :/