It is currently May 21st, 2024, 11:48 am

A few problems with a notes plugin that I'm creating

Get help with creating, editing & fixing problems with skins
Whitey
Posts: 2
Joined: September 9th, 2012, 3:47 pm

A few problems with a notes plugin that I'm creating

Post by Whitey »

I'm customizing this notes plugin for myself:

http://ahlamyusuf.deviantart.com/art/Notes-Illustro-Style-RM-skin-257987355

And at the moment this is what I have:

http://pastebin.com/e9uvJJED

This is my first attempt at creating a plugin, so be gentle :P Basically the two problems I have is that the text from the notes file doesn't have a margin between it and the side of the "widget", like so: http://i.imgur.com/LRpRQ.png

The second problem is that the text being displayed from the notes .txt file doesn't get updated right after I save the file, I have to right click and "refresh skin".

Is there a way to fix these issues? Thank you :D
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: A few problems with a notes plugin that I'm creating

Post by MerlinTheRed »

You can edit the distance from the left border by changing the "X" value in [NotesText1].

The skin isn't refreshed after you save the file because Rainmeter has no way of detecting this saving action. To make matters worse, you have a UpdateDivider=3600 on that text, which means it's effectively updated every hour.

If you want the skin to notice a change in the notes file faster, you have to decrease that UpdateDivider. Since putting an UpdateDivider on that meter but not on the Quote plugin measure is kind of useless, you might want to remove that line completely. This will result in changes to the notes file being applied once per update cycle (which is 1 second in your case).
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
Whitey
Posts: 2
Joined: September 9th, 2012, 3:47 pm

Re: A few problems with a notes plugin that I'm creating

Post by Whitey »

Thanks very much, both of your solutions worked a charm. Here's the finished product if anyone wants it (although it doesn't differ much from the original):

http://pastebin.com/kLuzPVW1