quote:
Originally posted by SpunkyLoveMuff
Why not use:
if(<maximised>){
...
...
}else if(<opened>){
...
...
}else{
//Must be minimised
...
}
your code can't work because the value is always 3 or 1 also when it's minimized so else operator can't work because there isn't another value....The problem is that matty's code always works except for chatwindow