A simpler way using just scripts:
Use a timer (100 ms interval for fastest detection) and the
GetWindowRect function to check for changes. When the contact list is destroyed (there's an event) stop all timers and don't create new ones. When it's created resume timing.
quote:
Thanks for the help and info on where I should start. I'll try it. I was going to use the Messenger API to get the width, and then check it with a timer... so it kinda was possible
That would've worked,
except the Messenger API would (1) take a while to initialize, (2) make Windows Messenger run, (3) not be the fastest way to get the width, and (4) not even work all the time.