I've been working on a script that uses a custom window with a listbox. It works great for the most part until I've minimized and restored a number of times. I then click on an item in my list (it's an MP3 list) and the item played is not what I clicked on.

The listbox works great most of the time, but there is a bug somewhere that causes the listbox index to lose sync with what's actually being clicked on in the list.