We give a recipe to generate ``nonlocal'' constants of motion for ODE Lagrangian systems and we apply the method to find useful constants of motion which permit to prove global existence and estimates of solutions to dissipative mechanical systems, and to the Lane-Emden equation.