System for controlling a machine equipped with a casing that delimits a working environment including functional components of said machine, this casing containing a transparent window that separates the working environment from an observation area, this system including: - a master control unit; - slave controllers servo-controlled by the master control unit and each driving a functional component; - a tactile graphical interface linked to the master control unit and integrated into the window of the machine, the master control unit being programmed to display, on the interface, panels for controlling the components, each panel including at least one interactive function for controlling the corresponding component, and to control the component via its controller in response to the tactile activation of at least one interactive function; this control system being characterized in that it comprises: - a database in which at least the positions of the components in the working environment are stored in memory; - a shape acquisition device for detecting an operator in the observation area; - and in that the master control unit is programmed to carry out the sequence of following steps, starting from an instant in time when a predetermined activation action of the operator is detected: ∘ calculating a line of sight corresponding to a direction of gaze of the operator by taking account of data originating from the shape acquisition device; ∘ on the basis of the positions, stored in memory, of the components and of the calculated line of sight, identifying at least one component situated in the line of sight; ∘ displaying, on the graphical interface, at least one panel for controlling the identified component. - a master control unit; - slave controllers servo-controlled by the master control unit and each driving a functional component; - a tactile graphical interface linked to the master control unit and integrated into the window of the machine, the master control unit being programmed to display, on the interface, panels for controlling the components, each panel including at least one interactive function for controlling the corresponding component, and to control the component via its controller in response to the tactile activation of at least one interactive function; - a database in which at least the positions of the components in the working environment are stored in memory; - a shape acquisition device for detecting an operator in the observation area; - and in that the master control unit is programmed to carry out the sequence of following steps, starting from an instant in time when a predetermined activation action of the operator is detected: ∘ calculating a line of sight corresponding to a direction of gaze of the operator by taking account of data originating from the shape acquisition device; ∘ on the basis of the positions, stored in memory, of the components and of the calculated line of sight, identifying at least one component situated in the line of sight; ∘ displaying, on the graphical interface, at least one panel for controlling the identified component. ∘ calculating a line of sight corresponding to a direction of gaze of the operator by taking account of data originating from the shape acquisition device; ∘ on the basis of the positions, stored in memory, of the components and of the calculated line of sight, identifying at least one component situated in the line of sight; ∘ displaying, on the graphical interface, at least one panel for controlling the identified component.