Help cleaning VBscript code, CPU Usage (Foobar2000 Systats in progress, pic inside)

hi guys

i am working on my sysstats foobar2k docklets

all of them are on WIP so i need help to debugging

at this time i get 2 version,

the first one is really basic and a bit nasty, just get the XML code genearted from plain text file, thanks to "Now Playing Simple component (foo_np_simple) 1.6" link: http://www.skipyrich.com/foobar/foo_np_simple.ptml

- Albumart support, but if your pics don match with the code like cover.jpg, just edit the code in the foobar plugin,

take a bit of CPU charge and get some bugs like "&" characters in folders, Artist, albums, songs, this break absolute path and the docklet is unusable XD

the play, stop, prev and next buttons works very well, just send commands and parameters to foobar.exe like foobar.exe /next , etc

here a shot

foo1cut.png.xs.jpg

the second one is a VBscript calling COM parameters generated by foo_comserver2 link

http://wiki.hydrogenaudio.org/index.php?ti...o_comserver2%29

- real time elapsed

- Cover art support

- eat CPU usage like a b*t*h XD

shot

foo2cut.png.xs.jpg

the code is really dirty and it need some help, because the CPU usage is really huge and annoying

please anyone can help

thanks

foobar.zip

Attachment: foobar.zip

#467423