Happens to me every time I sit in front of a computer for extended period of time.
What helps me is a software called Workrave. What it does is simple, it blocks your PC so you don't forget to take a rest.
I have configured it so it blocks my PC every 40 minutes for 10 minutes each time. Give it a try, it might help you.