Noids:
Your issues is a couple of things. First your x and y values are reversed so flip them. Second it appears that the way windowsnapper works (when you do run windowsnapper -pos and -size) is by passing the parameters you want for when the window is NOT the active window. In your case, it seems by your paste that you are only running 2 world of warcrafts. You can simply edit out the if logic since it is not needed.
If you are using Zantors scripts, it looks to use the if logic for nearly all sessions, not just one. Your script, however, was applying different logic depending on the session, and was part of your issue. I have taken the liberty of cooking up a multi.iss for you, just edit the sizes to your needs.
Code:
function main(int clients)
{
while ${Sessions} < ${clients} - 1
waitframe
variable int nSession
nSession:Set["${Session.Right[-2]}"]
variable int nXsize
variable int nYsize
variable int nXpos
variable int nYpos
nXsize:Set["300"]
nYsize:Set["200"]
nXpos:Set["1024-${nXsize}"]
nYpos:Set["(${nSession}-1)*${nYsize}"]
run windowsnapper -pos ${nXpos},${nYpos} -size ${nXsize}x${nYsize}
windowpos -viewable 0,0
windowsize -viewable 1024x768
}
Enjoy,
-S
Connect With Us