Wallpaper Cycler: Vista Gadget & COM DLL

Windows Vista Gadget

I created a small and simple Windows Vista Gadget to control Wallpaper Cycler. This gadget uses the COM .NET DLL explained below. The little gadget allows you to start/stop cycling, go to previous/next wallpaper and toggle slideshow mode on and off. You can see the little gadget on the following screenshot.

Windows Vista Gadget

COM .NET DLL

I have implemented a small COM .NET DLL which exports some functions that you can use for controlling Wallpaper Cycler. The COM object requires the .NET framework version 2. The following functions are available:

  • bool StartCycling()
  • bool StopCycling()
  • bool NextWallpaper()
  • bool PreviousWallpaper()
  • bool ToggleSlideshowMode()
  • bool ToggleMainWindow()
  • int GetNumberOfSecondsTillNextCycle()
  • bool IsCycling()

This COM object can be used in any programming language that supports COM. For example, in Javascript it can be used as follows:

<script type="text/javascript"> 
var gWPC = new ActiveXObject("WallpaperCyclerCOM.Controller"); 
var success = gWPC.StartCycling(); 
</script>
Share

Leave a Comment

Name: (Required)

E-mail: (Required)

Website:

Comment: