Method for operating control of a motorised drive device of a window for a building, the window comprising: - a frame, - at least one openable part (3a, 3b), - at least one device (21, 22) for locking the openable part with respect to the frame in at least one locked position, the motorised drive device being configured to move the openable part with respect to the frame, the motorised drive device comprising: - an electromechanical actuator, the electromechanical actuator comprising an electric motor, - an electronic control unit, and - a counting device, the counting device comprising at least one sensor, the counting device being configured to interact with the electronic control unit, the counting device and the electronic control unit being configured to determine a position of the openable part with respect to the frame, - the method comprising at least the following steps: ∘ a step of monitoring, by means of the electronic control unit, at least one signal coming from the counting device at a predetermined frequency depending on the position of the openable part with respect to the frame, and ∘ a step of determining a manual movement of the openable part with respect to the frame, - when the openable part is out of the locked position with respect to the frame, the predetermined frequency has at least one first value, - when the openable part is in the locked position with respect to the frame, the predetermined frequency has a zero value or a second value, the second value of the predetermined frequency being lower than the first value of the predetermined frequency, and - following a manual movement of the openable part with respect to the frame determined, during the step of determining a manual movement, from a position other than the locked position, the monitoring step is implemented according to a third value of the predetermined frequency, the third value of the predetermined frequency being higher than the first value of the predetermined frequency. - a frame, - at least one openable part (3a, 3b), - at least one device (21, 22) for locking the openable part with respect to the frame in at least one locked position, - an electromechanical actuator, the electromechanical actuator comprising an electric motor, - an electronic control unit, and - a counting device, the counting device comprising at least one sensor, the counting device being configured to interact with the electronic control unit, the counting device and the electronic control unit being configured to determine a position of the openable part with respect to the frame, - the method comprising at least the following steps: ∘ a step of monitoring, by means of the electronic control unit, at least one signal coming from the counting device at a predetermined frequency depending on the position of the openable part with respect to the frame, and ∘ a step of determining a manual movement of the openable part with respect to the frame, ∘ a step of monitoring, by means of the electronic control unit, at least one signal coming from the counting device at a predetermined frequency depending on the position of the openable part with respect to the frame, and ∘ a step of determining a manual movement of the openable part with respect to the frame, - when the openable part is out of the locked position with respect to the frame, the predetermined frequency has at least one first value, - when the openable part is in the locked position with respect to the frame, the predetermined frequency has a zero value or a second value, the second value of the predetermined frequency being lower than the first value of the predetermined frequency, and - following a manual movement of the openable part with respect to the frame determined, during the step of determining a manual movement, from a position other than the locked position, the monitoring step is implemented according to a third value of the predetermined frequency, the third value of the predetermined frequency being higher than the first value of the predetermined frequency.