X-Touch (+Extender) MIDI Remote Script (MCU mode)

Hi! I’m using this script for my XTouch One:

Is there a way to add the automatic part switching for the One?