Archive: avs hwnd help


10th March 2003 19:22 UTC

avs hwnd help
I'm trying to find out what the name of the AVS window is... The reason I want to know, is I'm using winamp 2.81 as the backend for a fullscreen/remote controlled jukebox.. and while I'm able to hide winamp from showing.. The avs window shows through when I start it, and I wanna find its Hwnd-find it so I can hide it from view...

Another problem I'm having is, I was wondering if its possible to control the avs using messages like those used to control winamp itself, so I can shift through the avs presets using my own controls...

Thanks a bunch for your responses!

-Jared


10th March 2003 20:22 UTC

Use FindWindow() or FindWindowEx() to locate it. You can use Spy++ (if you have MSVC) to get the necessary info about the AVS window and its control panel.

As far as controlling AVS, I think the best way is to send it WM_KEYDOWN/WM_KEYUP messages and fake the controls.

(u,y = prev/next preset, space = random preset, r = toggle autoswitching, ...) Don't know them all by heart.