Cycle through selection modes script

Hi - does anyone know if there is a script that allows me to cycle through selection modes ?

I found this script but unfortunately it doesn’t work.

cycle through selection modes

Thank you,
G

Why don’t use ctrl + tab for that? Or I miss understood the question?