It's not a trick.
Modern Li ion batteries keep track of their health. My dslr's batteries do the same. I recommend you download a free tool called
cocoanutbattery, but typically Apple's replace battery warning should be taken seriously. It displays the current battery capacity, the original battery capacity and load cycles, for instance.
Resetting the smc may help a little, but if your battery has undergone more than 1000 load cycles, it needs to be replaced (if you want to use your ProBook without a power adapter, that is).