It is currently July 19th, 2019, 2:40 am

Some Plugins Converted to Measures

Release announcements and important news from the developers.
User avatar
balala
Rainmeter Sage
Posts: 8376
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: WebParser converted from Plugin to Measure

balala » February 5th, 2018, 6:36 pm

jsmorley wrote:Note that as we move forward converting other plugins to measures, I will only be documenting the change(s) when the change hits the "release" version of Rainmeter. I won't be documenting this, and we shouldn't push it, during the "beta" stages, as that will indeed cause heartburn and confusion.
Agree...
User avatar
jsmorley
Developer
Posts: 19293
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

NowPlaying converted from Plugin to Measure

jsmorley » February 6th, 2018, 3:36 pm

I have made similar changes to NowPlaying, which has also been converted from a plugin to a measure.

https://docs.rainmeter.net/manual/measures/nowplaying/

Existing links on the forums or other places will redirect to the correct page.

https://docs.rainmeter.net/manual/plugins/nowplaying/#NotAPlugin
User avatar
balala
Rainmeter Sage
Posts: 8376
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: NowPlaying converted from Plugin to Measure

balala » February 6th, 2018, 3:54 pm

jsmorley wrote:I have made similar changes to NowPlaying, which has also been converted from a plugin to a measure.

https://docs.rainmeter.net/manual/measures/nowplaying/

Existing links on the forums or other places will redirect to the correct page.

https://docs.rainmeter.net/manual/plugins/nowplaying/#NotAPlugin
:17nodding :17good
User avatar
jsmorley
Developer
Posts: 19293
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

RecyleManager converted from Plugin to Measure

jsmorley » February 6th, 2018, 4:01 pm

I have made similar changes to RecycleManager, which has also been converted from a plugin to a measure.

https://docs.rainmeter.net/manual/measures/recyclemanager

Existing links on the forums or other places will redirect to the correct page.

https://docs.rainmeter.net/manual/plugins/recyclemanager/#NotAPlugin
User avatar
jsmorley
Developer
Posts: 19293
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

MediaKey Converted from Plugin to Measure

jsmorley » February 6th, 2018, 4:17 pm

I have made similar changes to MediaKey, which has also been converted from a plugin to a measure.

https://docs.rainmeter.net/manual/measures/mediakey

Existing links on the forums or other places will redirect to the correct page.

https://docs.rainmeter.net/manual/plugins/mediakey/#NotAPlugin
User avatar
jsmorley
Developer
Posts: 19293
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Some Plugins Converted to Measures

jsmorley » February 6th, 2018, 4:42 pm

And that's all of them for now.

Last reminder... I hope we don't make too big a deal out of this on existing skins when we are helping on the forums.

While the correct syntax is now Measure=Whatever, and I'm fine with encouraging that, particularly with new skins, make no mistake. The old syntax works equally well, and there is no difference in performance or functionality. The change that actually improves performance is entirely internal. Converting these plugins to measures does have a small but real improvement to efficiency. However, the efficiency is gained by how the measure is "executed" in code, not in how it is "defined" in the skin.

In effect, there is a routine that reads the skin .ini when it is loaded or refreshed, and it is basically saying:

If (Measure = "WebParser") or (Measure = "Plugin" and Plugin = "WebParser") then call the routines that execute the WebParser measure. The same measure routines are executed no matter which syntax you use.

Still, it is a good thing to have what folks use comport with what is in the documentation, that has to avoid confusion. So by all means let's gently encourage the new use.


P.S. RecycleManager has been converted from a plugin to a measure in recent versions of Rainmeter.
https://docs.rainmeter.net/manual/measures/recyclemanager/#NotAPlugin
User avatar
CyberTheWorm
Posts: 651
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Re: Some Plugins Converted to Measures

CyberTheWorm » February 6th, 2018, 5:34 pm

Good job guys, I just tried this and it's not hard to change an existing skin while removing 1 line of code per Measure so in total I removed 6 lines on a simple skin. :17good
The only source of knowledge is experience. Albert Einstein
Deviant Art Page
User avatar
jsmorley
Developer
Posts: 19293
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Some Plugins Converted to Measures

jsmorley » February 6th, 2018, 5:51 pm

CyberTheWorm wrote:Good job guys, I just tried this and it's not hard to change an existing skin while removing 1 line of code per Measure so in total I removed 6 lines on a simple skin. :17good
If you use Notepad++, there is a way to do it in one go...

Under "Search", select "Find in files"
1.jpg
Find what: Measure=Plugin\r\nPlugin=WebParser\r\n
Replace with: Measure=WebParser\r\n
Filters: *.ini
Directory: C:\Users\YourName\Documents\Rainmeter\Skins

Select "In all sub-folders" and "Extended"
Click "Replace in Files"

Result:
2.jpg
Yes, I have a lot of skins...
You do not have the required permissions to view the files attached to this post.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3407
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Some Plugins Converted to Measures

eclectic-tech » February 9th, 2018, 4:31 am

2018-02-08 23_17_56-Find in Files.png
:17denial :17angry :17drums :17nodding :17drums :17angry :17denial

I think I need to take some time and clean up my skins folder ... :D
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 19293
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Some Plugins Converted to Measures

jsmorley » February 9th, 2018, 12:50 pm

eclectic-tech wrote: I think I need to take some time and clean up my skins folder ... :D
LOL... You win!