It is currently May 3rd, 2024, 8:42 pm

Need Help with 'mail.ini' (HUD.Vision v2.2)

Get help with creating, editing & fixing problems with skins
luett
Posts: 6
Joined: February 15th, 2011, 6:32 pm

Need Help with 'mail.ini' (HUD.Vision v2.2)

Post by luett »

Hey everybody,

At first im German, so please be kind with wrong grammar.

Here is my problem:
im using the 'mail.ini' from HUD.Vision v2.2 and it workes great.
But everytime this skin refreshes and 1 or more eMails are there, it pings.
I also want this, but if I have lets say 2 eMails, the skin refreshes and I have still only 2 eMails, it also pings.
But i want the skin to ping only, if the number of eMails changed.
I have no idea how i could make that, maybe with a variable which saves the value, so the funktion can compare this number with the previous one.

Here is my 'mail.ini' I changed so far:
;===========================================
; Rainmeter configuration file
;===========================================

[Rainmeter]
Author=Jiri Mahel
AppVersion=1.0
; refresh count mail ~5min.
Update=300000

;Metadata added by RainBrowser
;http://rainmeter.net/cms/Rainmeter101-EditingSkins

[Metadata]
Name=
Config=
Description=
Instructions=
Version=
Tags=
License=
Variant=
Preview=

;End of added Metadata

[Variables]
fontColor.Text=255, 255, 255, 160
bar.color=255, 255, 255, 50
graph.line1=255, 255, 255, 75
graph.line2=255, 255, 255, 37
border.color=255, 255, 255, 75

;I changed it from the original values, so it fits the other skins better
FontName=Trebuchet MS
FontHeight=8
AntiAlias=1


[styleLeftText]
StringAlign=LEFT
; Meters using styleLeftText will be left-aligned.
StringCase=NONE
;StringStyle=BOLD
StringEffect=SHADOW
FontEffectColor=0,0,0,20
FontColor=#fontColor.Text#
FontFace=#FontName#
FontSize=#FontHeight#
AntiAlias=1
ClipString=1

;===========================================
; email Display
;===========================================

--------------------------------------------------------
;I use this background so it fits the other skins better
[meterBackground]
Meter=IMAGE
ImageName=#SKINSPATH#\illustro\SHARED\Background2Line.png
; #SKINSPATH# is a global variable that stands for your skin path. It is
; usually Documents\Rainmeter\Skins.
X=0
Y=0

[MeasureMail]
Measure=Plugin
Plugin=MailMeter.dll
;in my skin, this value is set of course
Server=<pop3-Server>
Port=110
;same here
User=<username here>
Password=<password here>
Timeout=15000
;and here is the point, where it pings if eMail-number = 0
IfAboveValue=0
IfAboveAction=!execute [PLAY Notify.wav]
;---------------------------------------

[l.mail]
Meter=STRING
FontSize=12
X=10
Y=12
;StringStyle=NORMAL
StringAlign=left
FontColor=#fontColor.Text#
FontSize=#FontHeight#
FontFace=#FontName#
AntiAlias=1
Text="new eMails:"
;I changed this, so it opens the inbox of outlook if i click "new eMails:" ('Posteingang' is german for inbox)
LeftMouseDownAction=!Execute ["outlook:Posteingang"]

[t.emailNew]
Meter=STRING
FontSize=12
MeasureName=MeasureMail
X=120
Y=12
;StringStyle=NORMAL
StringAlign=left
FontColor=#fontColor.Text#
FontSize=#FontHeight#
FontFace=#FontName#
Antialias=1

[cara1]
Meter=IMAGE
X=10
Y=32
W=190
H=1
SolidColor=#border.color#
BarOrientation=VERTICAL


[Outlook.openIn-box]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=40
W=190
H=14
Text="Open Junk-eMail-Folder"
;I made this new text 'Open Junk-eMail-Folder'-text, which opens onclick the Outlook-Junk-eMail-folder
LeftMouseUpAction=!Execute ["outlook:Junk-E-Mail"]

[App.refresh]
Meter=STRING
MeterStyle=styleLeftText
X=10
Y=60
W=190
H=14
Text="Refresh"
;normally, clicking on 'new eMails:' would refresh the skin, so I made this new text to replace it
LeftMouseDownAction=!RainmeterRefresh
mfg
luett
luett
Posts: 6
Joined: February 15th, 2011, 6:32 pm

Re: Need Help with 'mail.ini' (HUD.Vision v2.2)

Post by luett »

really nobody?
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: Need Help with 'mail.ini' (HUD.Vision v2.2)

Post by dragonmage »

Let me think on this a bit. I'll try to have something for you after work.
luett
Posts: 6
Joined: February 15th, 2011, 6:32 pm

Re: Need Help with 'mail.ini' (HUD.Vision v2.2)

Post by luett »

would be nice
Thanks in advance :D
luett
Posts: 6
Joined: February 15th, 2011, 6:32 pm

Re: Need Help with 'mail.ini' (HUD.Vision v2.2)

Post by luett »

still nothing figured out ?
luett
Posts: 6
Joined: February 15th, 2011, 6:32 pm

Re: Need Help with 'mail.ini' (HUD.Vision v2.2)

Post by luett »

I bump my thread one last time, maybe now someone has a solution