Best thing to do is to search for another hobby that is going to keep you busy but will cost less money than gambling. If you are able to do that then I am sure that you are going to be able to quit with in not time.
You are correct, searching for another thing that makes you busy would somehow work because you would surely forget to gamble if you are busy with other things and try to avoid as much as you can to those things which tempts you to play gambling. If does not work then seek help on your family and relatives.