It is currently May 4th, 2024, 12:10 am

New guy in town :) with a question or two.

Get help with installing and using Rainmeter.
ajelliottjr
Posts: 9
Joined: January 27th, 2013, 4:26 pm

New guy in town :) with a question or two.

Post by ajelliottjr »

:welcome: Hi I am Andy. I am just loving this Rainmeter! ;-)
Question: How do I get the Gmail counter to play a notification sound? :confused:
Question: From main skin like (Xkon) how do I toggle other skin apps on/off, so I do not have to copy/paste skins into the main skin? :?

Hope to hear from you all soon :bow: Andy
ajelliottjr
Posts: 9
Joined: January 27th, 2013, 4:26 pm

Re: New guy in town :) with a question or two.

Post by ajelliottjr »

It says 39 people have viewed my message, yet no one has any input. Why? Am I offending you all? Please say something. O.O

ajelliottjr wrote::welcome: Hi I am Andy. I am just loving this Rainmeter! ;-)
Question: How do I get the Gmail counter to play a notification sound? :confused:
Question: From main skin like (Xkon) how do I toggle other skin apps on/off, so I do not have to copy/paste skins into the main skin? :?

Hope to hear from you all soon :bow: Andy
User avatar
DigitalSpectrum
Posts: 32
Joined: January 17th, 2013, 1:45 pm
Location: Canada

Re: New guy in town :) with a question or two.

Post by DigitalSpectrum »

Your questions kind of make my brain hurt, It's not clear exactly what your talking about :uhuh: I guess that's why noone has answered.

For a gmail skin to play a sound, it has to know there is new mail, and then on the Action line add [PLAY /path/to/wav] at the same time it pops up with a number. After looking at the Xkon skin I didn't see any gmail just a link to hotmail, so which skin exactly are you talking about? Each skin is different.

It's not really necessary to copy/paste skins into a main skin folder, that may break some skins. Generally to load other skins you right click on a skin and go to Rainmeter-->Skins or from the tray icon just -->Skins and select the ones you want. Unless your talking about layouts?
Last edited by DigitalSpectrum on January 29th, 2013, 1:13 am, edited 1 time in total.
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: New guy in town :) with a question or two.

Post by moshi »

ajelliottjr wrote: Question: How do I get the Gmail counter to play a notification sound? :confused:
you could add an OnChangeAction http://docs.rainmeter.net/manual-beta/measures/general-options#OnChangeAction with a Play bang http://docs.rainmeter.net/manual-beta/bangs#Play to the measure that reads the title of the first mail or to the measure that reads the mail count.
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: New guy in town :) with a question or two.

Post by jsmorley »

moshi wrote: you could add an OnChangeAction http://docs.rainmeter.net/manual-beta/measures/general-options#OnChangeAction with a Play bang http://docs.rainmeter.net/manual-beta/bangs#Play to the measure that reads the title of the first mail or to the measure that reads the mail count.
Moshi, not to hijack this guy's thread and have a side-conversation but...

One thing to keep in mind is that WebParser is a bit tricky with OnChangeAction. Normally OnChangeAction ignores the first change from "nothing" to "something" on a measure when the skin is first loaded or refreshed. WebParser is a threaded plugin, and works a little different.

It starts out by creating an empty string as a "place holder" and then goes off to the internet or a file to download and parse the information you want. So really by the time it comes back with the data (which depending on factors like the speed of the connection, the response time of the site, and the size of the downloaded / parsed HTML might take some time, maybe even longer than one update of the skin) it will in fact see that "first" return of valid data as a "change" and fire the action.

Most of the time you are not going to want that on first load or a refresh, but there is a way to trick it...

Code: Select all

[MeasureMail1]
Measure=Plugin
Plugin=WebParser
URL=https://#GMailID1#:#GMailPassword1#@gmail.google.com/gmail/feed/atom
RegExp="(?siU)(.*)$"
UpdateRate=120
DecodeCharacterReference=1
OnChangeAction=[!SetOption MeasureMail1 OnChangeAction "[Play #@#Sounds\NewMailSound.wav]"]
If you look at what it is doing here, it is using that first unwanted "change" to set the OnChangeAction to the "real one". That causes it to skip that first one, and your action is only fired when it actually changes.

We are looking at finding a less "WTF?" way to solve this going forward... ;-)

BTW: That little sample above does work really nice to play a sound when your mail count changes. The only caveat is that it will play if you get a new mail, but also when you read a mail and the new count is reduced. A change is a change...

To actually have it only play the sound when the count increases, a more complicated approach is needed, probably using !SetVariable in conjunction with !WriteKeyValue to have a "permanent" variable that keeps track of the current count, then a Calc measure that is set disabled, enabled by the OnChangeAction and tests that the new count is larger than the old count. Then have an IfAction on that play the sound. Something like that anyway. I'd have to chew on it.
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: New guy in town :) with a question or two.

Post by moshi »

.
Last edited by moshi on March 29th, 2013, 4:16 pm, edited 1 time in total.
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: New guy in town :) with a question or two.

Post by moshi »

.
Last edited by moshi on March 29th, 2013, 4:17 pm, edited 1 time in total.
Goldstar

‬‬‬‬‬‬‬‬‬‬‬‬‬‬‌                                             

Post by Goldstar »

‬‬‬‬‬‬‬‬‬‬‬‬‬‬‌                                                  
Last edited by Goldstar on January 28th, 2015, 3:10 pm, edited 1 time in total.
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: New guy in town :) with a question or two.

Post by moshi »

i am sure you figured it out already. but if you did not: it's line 35. probably line 33 and 34 as well. and maybe line 31 and 32.

for more info have a look here: http://docs.rainmeter.net/manual/meters/image

have a look here as well: http://docs.rainmeter.net/manual/meters/string (you'll need that later).
Goldstar

‬‬‬‬‬‬‬‬‬‬‬‬‬‬‌                                             

Post by Goldstar »

‬‬‬‬‬‬‬‬‬‬‬‬‬‬‌                                                  
Last edited by Goldstar on January 28th, 2015, 3:10 pm, edited 1 time in total.