Login Page - Create Account

Support Board


Date/Time: Mon, 30 Dec 2024 16:24:00 +0000



[User Discussion] - Kiwi's countdown alarm clock APP

View Count: 2574

[2014-11-14 13:19:38]
David-G - Posts: 21
For years I have used KIWI's alarm clock application. Unfortunately it recently malfunctioned and I seem unable to locate the original source for that nice little (and useful) APP.

If KIWI or someone else can point me to a link where I can re-download it, I would be most grateful.

Thanks,

David
[2014-11-15 22:59:13]
Kiwi - Posts: 375
Thats a lot of years David.

As I recall it the app was using MS Visual Basic which I'd hacked. I'll have a look around and post it but I run linux now so I can't really test it.

Can you recall what the exact name was so I can search for it?
Date Time Of Last Edit: 2014-11-15 23:00:26
[2014-11-15 23:14:41]
Kiwi - Posts: 375
Heres my old files.

I now just use a bit of acsil code to give me a countdown in each relevant SC window. If you use it the bits that refer to up and down can be removed or just set to zero.




  /*----------------------------------------------------------------------*/
  // Output to text ... following active tool

  int Hour, Minute, Second;
  int& timesave = sc.PersistVars->i11;
SCDateTime BarTime = sc.SecondsPerBar;
SCString StrRemainingTime;
SCDateTime RemainingTime = barTime[as].GetTime() +
sc.SecondsPerBar - sc.CurrentSystemDateTime.GetTime();

if(sc.IsReplayRunning()) RemainingTime = barTime[as].GetTime() +
sc.SecondsPerBar - sc.LatestDateTimeForLastBar.GetTime();

if(RemainingTime != timesave) {
timesave=RemainingTime;
if(sc.CurrentlySelectedDrawingTool == 2 &&
        sc.CurrentlySelectedDrawingToolState) {
up = Up[sc.ActiveToolIndex];
dn = Dn[sc.ActiveToolIndex];
}
up = (up > 99) ? 99.0 : up;
dn = (dn > 99) ? 99.0 : dn;

s_UseTool Tool;
Tool.Clear(); // reset tool structure for our next use
float High, Low;
sc.GetMainGraphVisibleHighAndLow(High,Low);
if (C[sc.IndexOfLastVisibleBar] < ((High+Low)/2))
      if (sc.ScaleRangeType == SCALE_AUTO)
        Tool.BeginValue = High-(0.1 * (High-Low));
      else
        Tool.BeginValue = sc.ScaleRangeTop - 8;
else
      if (sc.ScaleRangeType == SCALE_AUTO)
        Tool.BeginValue = Low+(0.1 * (High-Low));
      else
        Tool.BeginValue = sc.ScaleRangeBottom + 8;
Tool.BeginDateTime =
barTime[sc.IndexOfLastVisibleBar - shiftleft.IntValue];
Tool.ChartNumber = sc.ChartNumber;
Tool.Tool = TOOL_TEXT;
Tool.LineWidth = 1; Tool.FontSize = fontsize.GetInt();
Tool.Region = 0;
Tool.AddMethod = UTAM_ADD_OR_ADJUST;
Tool.Color = RGB(28,28,28);

char output[40] = "";
if(RemainingTime <= 0 && RemainingTime >= -BarTime) {
RemainingTime = RemainingTime+sc.SecondsPerBar;
Tool.Color = RGB(255,0,0);
}
    else if(RemainingTime > BarTime || RemainingTime < -BarTime)
RemainingTime = 0;
Hour = (int) (RemainingTime / 3600);
Minute = ((int) (RemainingTime / 60)) - (Hour * 60);
Second = RemainingTime - (Hour * 3600)-(Minute * 60);
if(Second >= 10) {
StrRemainingTime.Format(" %d:%d %2.0f %2.0f", Minute,
Second, up, dn);
}
else {
StrRemainingTime.Format(" %d:0%d %2.0f %2.0f", Minute,
Second, up, dn);
if(Minute == 0) {
if((Second == 8 || Second == 6 || Second == 4 ||
          Second == 2 || Second == 0))
Tool.Color = RGB(0,0,255);
else Tool.Color = RGB(255,0,255);
}
}
Tool.Text = StrRemainingTime;
Tool.LineNumber = 164;
sc.UseTool(Tool);
}

attachmenttimer_source_lite.zip - Attached On 2014-11-15 23:06:53 UTC - Size: 21.05 KB - 680 views
attachmentTimerLiteKiwi2.zip - Attached On 2014-11-15 23:07:35 UTC - Size: 880.98 KB - 662 views
[2014-11-16 08:23:01]
David-G - Posts: 21
Hi KIWI,

Thanks for replying, and yes it was a long time ago!

I vaguely seem to recall you referring it as: your hack of "iceman's" clock... but I cannot be sure.

Thanks,

David
[2014-11-23 12:15:52]
David-G - Posts: 21
For anyone who may be interested I located this free Talking Clock programme:

http://talking-desktop-clock.software.informer.com/download/

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account