It is currently April 25th, 2024, 12:59 am

New Plugin Idea (Text Manipulation)

Share and get help with Plugins and Addons
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

New Plugin Idea (Text Manipulation)

Post by dragonmage »

We could do a lot of dynamic things if Rainmeter had the ability to read, write and compare text. So why not create a plugin with the following abilities...
  • String Comparison
    • Regular Expressions
    • Compare string values from other measures
    • Compare strings retrieved from files
    • Semi-conditionals (any number of them should be possible)
      • IfString1Exists=This is my string.
      • IfString1ExistsAction=!Execute [!SomeBang]
  • INI
    • Read and return values (Can check settings in other skins)
    • Write values (Can change settings in other skins)
    • Write whole [Sections] to an .ini
      • Bang to write sections dynamically
      • Syntax: !WriteToIni path\to\file.ini [section to write new section after] [new section name] key=value key=value key=value
    • Semi-conditionals (any number of them should be possible)
      • IfValueIs=This is my string.
      • IfValueIsAction=!Execute [!SomeBang]
  • Search and Replace
    • Bang that can be used to find and replace strings in files
  • Convert Strings to Integers
    • For use by other measures that require integers
Anyone have anything to add or any holes to shoot through my ideas? Devs, should this be a plugin or would this make more since in the core?
User avatar
JamesAC
Developer
Posts: 318
Joined: July 14th, 2009, 5:57 pm

Re: New Plugin Idea (Text Manipulation)

Post by JamesAC »

I agree, that would be a great set of new features.

Could be quite a lot of work to do all of those things though
+++ Divide By Cucumber Error. Please Reinstall Universe And Reboot +++
Quis custodiet ipsos custodes?
Omardude
Posts: 22
Joined: December 2nd, 2009, 7:05 pm

Re: New Plugin Idea (Text Manipulation)

Post by Omardude »

Great idea! At the moment, using NirCmd works just fine for doing similar tasks (if not all), but having this available in Rainmeter would certainly be better. In my opinion this should rather be part of the core instead of being a separate plugin.

Some of the ideas discussed in The Meter Measure could also be added here.
User avatar
Varelse
Posts: 61
Joined: April 22nd, 2009, 7:46 pm

Re: New Plugin Idea (Text Manipulation)

Post by Varelse »

I would also love to be able to find the length of a string in pixels.
ehcelino
Posts: 7
Joined: May 6th, 2010, 1:20 am

Re: New Plugin Idea (Text Manipulation)

Post by ehcelino »

Great sugestions, I'd like that level of text manipulation too.