Method for guiding and automatically control a device and a device implementing the PROCESS