Guiding-like functions for periodic or bounded solutions of ordinary differential equations