like this????

Code:
on *:active: { 
  if ($window(status window)) && (!$status) echo -a not connected
}