It takes time. More than a week or a month but, you get to a place where you get ahead of the urge to smoke before it takes hold. It actually becomes automatic to not smoke.
THE ONE CONSTANT
There Are Only Two Choices: Smoking or Not Smoking
YOU HAVE TO PUT YOUR QUIT FIRST.
Until you understand and internalize this you will be a smoker.
One Constant = Quit Comes First,
ALWAYS