Activate deactivate track function does not behave in the same way in Cubase 12

I created a macro with which I open the Cubase search function on my touchscreen
I choose a track and then
it is activated and adapts the screen zoom according to the number of tracks.
It works very well on Cubase 11 but not on Cubase 12.
I have to press my macro button again for it to work.
This behavior is strange
I attach gifs so that it is more explicit
as well as macro capture.
Cubase 12

it was already necessary that I modify certain macros so that it works under Cubase 12.
I wonder that the redesign of the project logic editor creates conflicts
If anyone has any suggestions