Hi!
Hmmm, not sure it is possible with scripts because scripts are executed one time at the score loading. It’s more a question of retroactivity (direct://) and message scripting (using {}). On your cursor, set the following message (dble-click) :
direct:// setActive 4 {(cursor_xPos > 1)?(0):(1)}