Windows Media Player pluging to wrap screensavers
-
Yesterday I downloaded and installed electricsheep screen saver from the following site - http://www.electricsheep.org/ This is such a cool screen saver, I wanted to watch it while I worked, I found the following "SheepWatcher" http://www.geocities.com/c00l_ac/SheepWatcher.html So I started thinking thats cool how did they do that, run the screen saver in a window, good old Microsoft had the anwser - http://support.microsoft.com/kb/q182383/ So being a windows developer, I decided I could do better, a Windows Media Player plugin to run ElectricSheep.scr, first step get the WMP SDK - http://www.microsoft.com/windows/windowsmedia/forpros/platform/sdk.aspx Firstly it did not work with VS.NET 2005 - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwmt/html/playersdk_readme.asp Ok, create a C++ project for Windows Media Player Visualization plugin, we call it SheepWMP, ok actually I wrote a quick test like so - DialogApp::OnInitInstance () { CreateProcess "electricsheep.scr" "/p HWND" } Bingo it works, so inside the WMP pluging on create I create the process, on destroy I terminate the process on render I check the window size and FindWindowEx ( ..., "WindowsScreenSaverClass" and resize the preview window! Job done - if you want the source code please just ask :-D, its not formated for an artical yet. You can read my blog and download SheepWMP.DLL from my blog - http://titanae.blogspot.com/
-
Yesterday I downloaded and installed electricsheep screen saver from the following site - http://www.electricsheep.org/ This is such a cool screen saver, I wanted to watch it while I worked, I found the following "SheepWatcher" http://www.geocities.com/c00l_ac/SheepWatcher.html So I started thinking thats cool how did they do that, run the screen saver in a window, good old Microsoft had the anwser - http://support.microsoft.com/kb/q182383/ So being a windows developer, I decided I could do better, a Windows Media Player plugin to run ElectricSheep.scr, first step get the WMP SDK - http://www.microsoft.com/windows/windowsmedia/forpros/platform/sdk.aspx Firstly it did not work with VS.NET 2005 - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwmt/html/playersdk_readme.asp Ok, create a C++ project for Windows Media Player Visualization plugin, we call it SheepWMP, ok actually I wrote a quick test like so - DialogApp::OnInitInstance () { CreateProcess "electricsheep.scr" "/p HWND" } Bingo it works, so inside the WMP pluging on create I create the process, on destroy I terminate the process on render I check the window size and FindWindowEx ( ..., "WindowsScreenSaverClass" and resize the preview window! Job done - if you want the source code please just ask :-D, its not formated for an artical yet. You can read my blog and download SheepWMP.DLL from my blog - http://titanae.blogspot.com/
Good work. An article about this sounds great too. Chris Meech I am Canadian. [heard in a local bar] The America I believe in has always understood that natural harmony is only one meal away from monkey burgers. [Stan Shannon] GOOD DAY FOR: Bean counters, as the Australian Taxation Office said that prostitutes and strippers could claim tax deductions for adult toys and sexy lingerie. [Associated Press]