It is currently April 24th, 2024, 1:51 am

How does one write a plugin for RainMeter?

Share and get help with Plugins and Addons
esac
Posts: 2
Joined: October 6th, 2009, 3:34 am

How does one write a plugin for RainMeter?

Post by esac »

Maybe I am missing something obvious, but what is the plugin architecture for rainmeter? I am trying to write a plugin that would use the Vista/Windows 7 DWM (live thumbnails) API to display previews of specific windows in your sidebar.

Can this plugin be written in C#?
User avatar
Samus Aran
Posts: 86
Joined: August 7th, 2009, 11:23 pm

Re: How does one write a plugin for RainMeter?

Post by Samus Aran »

The environment for RM is C++, if I didn't mix up things with C#.
User avatar
Chewtoy
Moderator
Posts: 995
Joined: June 10th, 2009, 12:44 pm
Location: Sweden

Re: How does one write a plugin for RainMeter?

Post by Chewtoy »

Well... It's something with C in the begining anyhow. ^w^
I don't think, therefore I'm not.
MattKing
Developer
Posts: 98
Joined: August 6th, 2009, 3:03 pm

Re: How does one write a plugin for RainMeter?

Post by MattKing »

All plugins right now our in C++.

You don't necessarily have to write your plugin in c++ but it would very very difficult to write in anything else.
esac
Posts: 2
Joined: October 6th, 2009, 3:34 am

Re: How does one write a plugin for RainMeter?

Post by esac »

What about managed/mixed mode C++? You can make calls directly from C++ into managed code that way.

Either way, is there a guide or interface, etc.. for writing a plugin?
nvme
Developer
Posts: 73
Joined: June 18th, 2009, 1:40 am

Re: How does one write a plugin for RainMeter?

Post by nvme »

Yes there is a sample plugin Visual Studio project, grab a checkout from rahttp://code.google.com/p/rainmeter/ . Look at the PluginExample project. That will help you get started.
User avatar
psouza4
Developer
Posts: 30
Joined: December 2nd, 2010, 1:56 pm
Location: Meridian, ID, USA

Re: How does one write a plugin for RainMeter?

Post by psouza4 »

esac wrote:Maybe I am missing something obvious, but what is the plugin architecture for rainmeter? I am trying to write a plugin that would use the Vista/Windows 7 DWM (live thumbnails) API to display previews of specific windows in your sidebar.

Can this plugin be written in C#?
I know this runs the risk of reviving a dead thread (sorry), but it needs to be updated: Rainmeter now supports C# plugins. Check the user guide for example/template source code and a toolkit helper class.
User avatar
Samus Aran
Posts: 86
Joined: August 7th, 2009, 11:23 pm

Re: How does one write a plugin for RainMeter?

Post by Samus Aran »

Good things come to those who wait! :)

Could you please post the link to that user guide page? I can't find it. :p
User avatar
psouza4
Developer
Posts: 30
Joined: December 2nd, 2010, 1:56 pm
Location: Meridian, ID, USA

Re: How does one write a plugin for RainMeter?

Post by psouza4 »

Samus Aran wrote:Could you please post the link to that user guide page? I can't find it. :p
http://rainmeter.net/cms/Developers-CSharpPlugins_beta

Feel free to bug me personally for support with the template, I wrote it. I'm typically on IRC when I'm available.