It is currently February 21st, 2020, 3:14 pm

Creating Plugins

Share and get help with Plugins and Addons
[D]
Posts: 9
Joined: May 20th, 2009, 3:49 am

Re: Creating Plugins

Post by [D] »

It would be a folder containing multiple quote files. Each would be a .txt or .doc file or what have you inside of the RANDOMQUOTES folder.
dragonmage
Developer
Posts: 1286
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: Creating Plugins

Post by dragonmage »

From the Manual

PathName
Path to a folder or a file. If it's a folder, the plugin returns the file name of one of the files in it. If it's a file, the plugin reads a random part of text from it. The file can be ANSI or UNICODE.

Try pointing to a txt file.

Put a file named random.txt in C:\ put some sample quotes in it.

Save the following code as RandomQuotes.ini , put it in a folder named RandomQuotes inside the Rainmeter\Skins folder, refresh Rainmeter. The RandomQuotes will now show up in your Configs list, activate it. It should appear in the upper left sorner of the screen.

Code: Select all

[Rainmeter]
BackgroundMode=2
SolidColor=000,000,000,185
Update=1000
DynamicWindowSize=1

[RandomQuote]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName="C:\random.txt"
UpdateDivider=90

[MeterQuote]
Meter=String
MeasureName=RandomQuote
X=0
Y=0
FontFace=Arial
FontSize=12
FontStyle=Normal
FontColor=255,255,255
Text=%1

[D]
Posts: 9
Joined: May 20th, 2009, 3:49 am

Re: Creating Plugins

Post by [D] »

Wow! That's impressive...

I'm curious as to how you figured all of this out, but I'm sure it will come from experience. Either way, sorry about the lack of response, I recently wiped my hard drive for funsies, and had to redownload a LOT of things. You don't realize how much you have on here 'till it's gone, you know?

Edit: I tried the skin, and it doesn't appear on the desktop, or otherwise. I'm going to fiddle with the positioning and coloring of it, as well as window size to see what will happen.

Edit2: Oh! And I forgot to explain how I'm intending on using this. I'm currently using the MioAkiyama skin for Rainmeter, and am hoping to transplant this quote string (eventually, after I figure this out) into that style.

Here's what I'm sort of toying with:
[D]'s Fail Design wrote: [Variables]

;= Set. Indication ==================================================

;CharaImage
Chara1="mio.png"
Chara2="mio.png"

FontFace1="Times New Roman"
FontSize1="8"
FontColor1="255, 255, 255, 255"
FontStyle1=BoldItalic

BarColor0="96, 48, 48, 32"
BarColor1="255, 255, 0, 230"
BarColor2="90, 120, 255, 230"
BarColor3="130, 70, 255, 230"
BarColor4="60, 230, 115, 230"
BarColor5="255, 185, 70, 230"

HDD1="C:\"
HDD2="E:\"

Message1a="Today is "
Message1b=" "
Message2a="Current Time is "
Message2b=" "
Message3a="You've worked for "
Message3b="[RandomQuote]
Measure=Plugin
Plugin=Plugins\QuotePlugin.dll
PathName="C:\random.txt"
UpdateDivider=90

[MeterQuote]
Meter=String
MeasureName=RandomQuote
X=0
Y=0
FontFace=Arial
FontSize=12
FontStyle=Normal
FontColor=255,255,255
Text=%1"
After looking over this, and burying myself in the help section deal, it looks almost like I'd need a !bang command, unless I don't understand it properly...
User avatar
jsmorley
Developer
Posts: 20282
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Creating Plugins

Post by jsmorley »

And if you need some "pithy" sayings to go in your text file for random display, there are these:

;-)

A closed mouth gathers no foot.
A crisis is when you can't say "Let's forget the whole thing."
A live plowhorse is still better than a dead thoroughbred.
Age and treachery will always overcome youth and skill
All generalizations are false...
All software is bug-free, assuming sufficiently clever definitions of "feature" and "expected behaviour".
Any sufficiently advanced technology is indistinguishable from magic.
Avenge yourself; live long enough to be a problem to your children.
Be nice to your kids, for it is they who will choose your nursing home.
Bills travel through the mail at twice the speed of checks.
Borrow money from pessimists-they don't expect it back.
Chaos, panic, and disorder - my work here is done.
Complex problems have simple, easy to understand wrong answers.
Consciousness: That annoying time between naps.
Diplomacy is the art of saying "nice doggy" until you can find a rock.
Don't be irreplaceable; if you can't be replaced, you can't be promoted.
Don't be sexist; broads hate that!
Don't look back, they might be gaining on you.
Don't make me mad. I'm running out of places to hide the bodies.
Eagles may soar, but weasels aren't sucked into jet engines.
Errors have been made. Others will be blamed.
Even the best of friends cannot attend each other's funeral.
Every day I get up and look through the Forbes list of the richest people in America. If I'm not there, I go to work.
Experience is something you don't get until just after you need it.
First things first, but not necessarily in that order.
Five out of four people have a problem with fractions.
Forgive your enemies, but never forget their names.
Friends help you move. Real friends help you move bodies.
Friends may come and go, but enemies accumulate.
Gravity: It's not just a good idea. It's the law.
Half the people in the world are above average.
Hell hath no fury like the lawyer of a woman scorned.
I am not infantile, you stinky poopyhead.
I can't remember if I'm the good twin or the evil one.
I do not know how the Third World War will be fought, but I know how the Fourth will: with sticks and stones.
I don't mind the voices in my head, it's the ones in yours that bug me.
I don't think I'm indecisive. . .
I don't want to achieve immortality through my work; I want to achieve immortality through not dying.
I hear voices in my head and they say they don't like you.
I see dumb people.
I used to be schizophrenic, but we're OK now.
I used to listen to the voices in my head, but I ran out of places to hide the bodies.
I used to think I was indecisive, but now I'm not so sure.
I'd kill for a Nobel Peace Prize.
I'm not crazy, I've just been in a very bad mood for 30 years.
I'm not tense, just terribly, terribly alert.
If after 2 hours in a poker game you are not sure who the pigeon is, you are.
If at first you don't succeed, skydiving is not for you.
If at first you don't succeed, try, try again. Then quit. No use being a damn fool about it.
If I had known I was going to live this long, I'd have taken better care of myself.
If I walked on water people would say I couldn't swim.
If ignorance is bliss, why aren't there more happy people?
If it holds water, it's craft. If it leaks, it's art.
If it isn't broken, fix it until it is.
If we aren't supposed to eat animals, why are they made of meat?
If you don't care where you are, then you aren't lost.
If you lend someone $20, and never see that person again, it was probably worth it.
If you must choose between two evils, pick the one you've never tried before.
If you tell the truth, you don't have to remember anything.
If you think nobody cares if you're alive, try missing a couple of car payments.
Instead of getting married again, I'm going to find a woman I don't like and just give her a house.
Is it time for your medication or mine?
It ain't what they call you, it's what you answer to.
It is easier to obtain forgiveness than permission!
It may be that your sole purpose in life is simply to serve as a warning to others.
It's been lovely, but I have to scream now.
It's better to have it and not need it than to need it and not have it.
It's lonely at the top, but you eat better.
Just because you're paranoid doesn't mean they're not out to get you
Knowledge is power, and power corrupts. So study hard and be evil.
Life can only be understood backwards; but it must be lived forwards.
Life is a terminal disease.
Life is what happens to you while you are making other plans.
Living on Earth is expensive, But it does include a trip around the sun.
Lottery: A tax on people who are bad at math.
Love may be blind, but marriage is a real eye opener.
Money isn't everything, but it sure keeps the kids in touch.
My kid had sex with your honor student.
My wife keeps complaining I never listen to her (or something like that).
Never attribute to malice what can adequately be explained by stupidity.
Never do your best card tricks for the group you play poker with.
Never test the depth of the water with both feet.
No good deed ever goes unpunished.
No one is listening until you make a mistake.
Not everything that can be counted counts, and not everything that counts can be counted
Of all the things I've lost, it's my mind I miss the most.
On your mark, get set, go away!
One of the symptoms of an approaching nervous breakdown is the belief that one's work is terribly important.
Procrastinate now.
Quoting one is plagiarism. Quoting many is research.
Reality is a crutch for people who can't handle drugs.
Rehab is for quitters.
Remember, if the logs float upstream, they are not logs.
Remember, it's the second mouse that gets the cheese
Rock is dead. Long live paper and scissors.
So many cats, so few recipes.
Some days it's just not worth gnawing through the leather straps.
Some days you are the bug, some days you are the windshield.
Some part of the journey is going to be uphill.
Someday, we'll look back on this, laugh nervously and change the subject.
Sometimes I think war is God's way of teaching us geography.
Stress is when you wake up screaming and you realize you weren't asleep.
Support mental health or I'll kill you
Taxation WITH representation isn't so hot, either!
The beatings will continue until morale improves.
The creative are slaves to their talent, and must answer when it summons.
The future will be better tomorrow.
The last thing I want to do is hurt you. But it's still on the list.
The last time politics and religion were mixed, people were burned at the stake.
The lion and the lamb shall lie down together, but the lamb won't get much sleep.
The trouble with doing something right the first time is that nobody appreciates how difficult it was.
The trouble with life is there's no background music.
The trouble with the gene pool is that there's no lifeguard.
There are 10 types of people in the world. Those who understand binary, and those who don't.
There has been an alarming increase in the number of things I know nothing about.
There's never time to do it right, but always time to do it over!
There's no place like 127.0.0.1
Three out of four voices in my head said I should stay home and clean the guns.
Time is nature's way of keeping everything from happening all at once.
Timing has an awful lot to do with the outcome of a rain dance.
To err is human, to blame it on somebody else shows management potential.
Today is the first day of the rest of your life. But so was yesterday, and look how you messed that up.
Warning: Dates on calendar are closer than they appear.
Well, this day was a total waste of makeup.
What if the hokey pokey is really what it's all about?
What would Scooby do?
Whatever kind of look you were going for, you missed.
When you have eliminated the impossible, whatever remains, however improbable, must be the truth.
Why is "abbreviation" such a long word?
Women need a reason to have sex. Men just need a place
Wrinkled was not one of the things I wanted to be when I grew up!
You can get more with a kind word and a gun than you can with a kind word alone.
You sound reasonable......time to up my medication.
You're just jealous because the voices only talk to ME.
Your village called. They're missing their idiot.
[D]
Posts: 9
Joined: May 20th, 2009, 3:49 am

Re: Creating Plugins

Post by [D] »

Ha! I liked a lot of these; pretty good little 'of the day' quotes.

One reason I wanted to do this though, was to eventually get the program to repeat certain phrases after certain actions: E.g.)

Open a new window, "Whatcha gonna look up?"

Run a new program, "Careful, could be a virus!"

Or if I shutdown the computer, a quick, "Bye!"

That's my goal for the long run. As of now, I'm settling for random quotes from time to time. Next, I wanna set it up so it'll give random quotes every few minutes or so along with a chime.
dragonmage
Developer
Posts: 1286
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: Creating Plugins

Post by dragonmage »

You saved the file the way I instructed, and created C:\random.txt? It should work. Can anyone else test please?
User avatar
jsmorley
Developer
Posts: 20282
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Creating Plugins

Post by jsmorley »

Works fine for me...

Image
[D]
Posts: 9
Joined: May 20th, 2009, 3:49 am

Re: Creating Plugins

Post by [D] »

...Hm... I'm not sure then... I've saved it exactly as you said... Let me try it again.

Edit: AH! I figured it out. I saved it in the skins folder, AS a skin, not in a skin. Thank you so much! Now to figure out why all of this works so I'm not begging for different skins and whatnot! :D Thanks!