modziw
28th February 2012, 09:22
does anyone know how i can execute an action whenever winamp is minimized? my c++ is shit and i can't seem to find a single example of how to receive this kind of a message from the window
there are examples of the reverse -- say to minimize the window. but i want to know when the user minimizes the window, so that i can execute a particular function, and then when winamp is restored, to execute another function.
specifically, i am hoping to have a gen_plugin that loads a different visualizer when winamp is off the screen (keyboard_led_flasher) and then fires up the spectrum analyzer again when back on screen
i've tried loops and switches with IPC_ISWNDVISIBLE but then winamp hangs while the loops wait for focus...
maybe there is a way to use windows messages like WM_ACTIVATEAPP, but could anyone help me figure out how to do it so that winamp doesnt hang?? i was working inside init() but its my first plugin for winamp i really have no idea whats what
appreciate any help :)
cheers m8s :igor:
there are examples of the reverse -- say to minimize the window. but i want to know when the user minimizes the window, so that i can execute a particular function, and then when winamp is restored, to execute another function.
specifically, i am hoping to have a gen_plugin that loads a different visualizer when winamp is off the screen (keyboard_led_flasher) and then fires up the spectrum analyzer again when back on screen
i've tried loops and switches with IPC_ISWNDVISIBLE but then winamp hangs while the loops wait for focus...
maybe there is a way to use windows messages like WM_ACTIVATEAPP, but could anyone help me figure out how to do it so that winamp doesnt hang?? i was working inside init() but its my first plugin for winamp i really have no idea whats what
appreciate any help :)
cheers m8s :igor: