Ok, Im pretty tired so I'm not really looking at the code you provided sorry. So you have multiple $cid's and you want to scroll through the windows but not the hidden ones.

basically: if ($window(%inc).state == hidden) inc %inc

EDIT:LOL I'm too beat to getit right. As Riamus said ^^^

When you go to /window -a $window, check and make sure its .state != hidden first. If it does inc or dec the variable to skip it.

Last edited by DJ_Sol; 23/01/07 01:28 AM.