{"id":19,"date":"2007-06-07T17:47:03","date_gmt":"2007-06-07T16:47:03","guid":{"rendered":"http:\/\/www.nuonsoft.com\/blog\/2007\/06\/07\/wallpaper-cycler-vista-gadget-com-dll\/"},"modified":"2007-06-07T17:47:03","modified_gmt":"2007-06-07T16:47:03","slug":"wallpaper-cycler-vista-gadget-com-dll","status":"publish","type":"post","link":"https:\/\/www.nuonsoft.com\/blog\/2007\/06\/07\/wallpaper-cycler-vista-gadget-com-dll\/","title":{"rendered":"Wallpaper Cycler: Vista Gadget &#038; COM DLL"},"content":{"rendered":"<p><strong>Windows Vista Gadget<\/strong><\/p>\n<p>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.<\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" width=\"149\" src=\"http:\/\/www.nuonsoft.com\/images\/blog\/vista_gadget.png\" alt=\"Windows Vista Gadget\" height=\"81\" style=\"width: 149px; height: 81px\" title=\"Windows Vista Gadget\" \/><\/p>\n<p><strong>COM\u00a0.NET DLL<\/strong><\/p>\n<p>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:<\/p>\n<ul>\n<li>bool StartCycling()<\/li>\n<li>bool StopCycling()<\/li>\n<li>bool NextWallpaper()<\/li>\n<li>bool PreviousWallpaper()<\/li>\n<li>bool ToggleSlideshowMode()<\/li>\n<li>bool ToggleMainWindow()<\/li>\n<li>int GetNumberOfSecondsTillNextCycle()<\/li>\n<li>bool IsCycling()<\/li>\n<\/ul>\n<p>This COM object can be used in any programming language that supports COM. For example, in Javascript it can be used as follows:<\/p>\n<blockquote>\n<pre><font size=\"2\" color=\"#0000ff\">&lt;<\/font><font size=\"2\" color=\"#a31515\">script<\/font><font size=\"2\"> <\/font><font size=\"2\" color=\"#ff0000\">type<\/font><font size=\"2\" color=\"#0000ff\">=\"text\/javascript\"&gt; \r\nvar<\/font><font size=\"2\"> gWPC = <\/font><font size=\"2\" color=\"#0000ff\">new<\/font><font size=\"2\"> ActiveXObject(<\/font><font size=\"2\" color=\"#a31515\">\"WallpaperCyclerCOM.Controller\"<\/font><font size=\"2\">); \r\n<\/font><font size=\"2\" color=\"#0000ff\">var<\/font><font size=\"2\"> success = gWPC.StartCycling(); \r\n<\/font><font size=\"2\" color=\"#0000ff\">&lt;\/<\/font><font size=\"2\" color=\"#a31515\">script<\/font><font size=\"2\" color=\"#0000ff\">&gt;<\/font><\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>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. COM\u00a0.NET [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-software-development-progress","category-wallpaper-cycler"],"_links":{"self":[{"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":0,"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nuonsoft.com\/blog\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}