metamorphium, you are godlike.
I never thought of making so many methods but it really seems to make sense here!
(Learned something again. <3)
Ah, I have a question though. =o
How do you make a... list of buttons that links to the mails?
I have this problem with a few scripts because I don't have a clue how to do this.
Ignore the graphics, it's still work in progress.So, what I want to archive is to create a button with the subject as text - I guess these buttons can be created by script when adding a new mail [in the method?] but I don't know how add them in a way that they are ordered vertically.
(You know, like a vertical list.
Button 1
Button 2
Button 3)
Well, don't know if needed, but this is the window script:
#include "scripts\base.inc"
#include "scripts\keys.inc"
this.xResult = false;
var sender =
this.
GetControl("sender");
// "from" static var betreff =
this.
GetControl("betreff");
// "subject" static var nWin =
this.
GetControl("nWin");
// window for "body" [clipped to main window to make the text scrollable] var nachricht = nWin.
GetControl("nachricht");
// "body" static var ort =
this.
GetControl("ort");
// "location" static var bWin =
this.
GetControl("bWin");
// window for buttons [clipped to main window to make them scrollable]
var incomingCount = MailSystem.GetIncomingEmailsCount();
for (var a=0; a<incomingCount; a=a+1)
{
var email = MailSystem.GetIncomingEmail(a);
if (email != null)
{
sender.
Text = email.
From;
betreff.
Text = email.
Subject;
nachricht.
Text = email.
Body;
ort.
Text = email.
Location;
}
}
////////////////////////////////////////////////////////////////////////////////
on "close"
{
}
Also, thanks again for your help! <3
Don't know what I'd do without you, and your scripting is a huge inspiration for the future. :>
- R.