How do I window switch of an application?

Hello, Ctrl+tab and selection doesn't work for applications inside VM,
so I want to do my own window switch, say set hotstring trigger as tt,
and find out the current windowIndex of windows and activate (windowIndex)%WINDOWCOUNT()+1
how do I do that?