Вниз
Скачать: CL | DM;

Вот код   Найти похожие ветки 

 
snoup ©   (2003-12-14 00:52) [0]

program Reminder;

{$APPTYPE CONSOLE}

uses
Windows, IniFiles, Classes, SysUtils;

var
ID: string;

procedure OpenProg;
begin
WinExec(Pchar(ExtractFilePath(ParamStr(0))+"NoteBook.exe"+" "+ID),SW_SHOW);
end;

procedure Detecting(FileName: string);
var
IDs: TStringList;
i, iI: integer;
begin
iI:=1;
while iI>0 do
begin
with TIniFile.Create(FileName) do
begin
IDs:=TStringList.Create;
ReadSections(IDs);
for i:=1 to IDs.Count-1 do
if ReadBool(IDs.Strings[i],"Active",true) then
if ReadBool(IDs.Strings[i],"TimeCheck",false) then
begin
if DateToStr(ReadDate(IDs.Strings[i],"Date",0)) +" "+ReadString(IDs.Strings[i],"Time","")<=FormatDateTime("dd.MM.yyyy hh:mm",Now) then
begin
ID:=IDs.Strings[i];
OpenProg;
Exit;
end
end
else
if DateToStr(ReadDate(IDs.Strings[i],"Date",0))<=FormatDateTime("dd.MM.yyyy", Now) then
begin
ID:=IDs.Strings[i];
OpenProg;
Exit;
end;
IDs.Free;
Free;
end;
Sleep(20000);
end;
end;

begin
Detecting(ExtractFilePath(ParamStr(0))+"Data\Reminders.dat");
end.


 
snoup ©   (2003-12-14 01:01) [1]

ВСЕМ СОРРИ ЗА СПАМ...ЭТО ТОЛЬКО, чтобы УМНЫЕ ЛЮДИ КОД ПРОЧЛИ...



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.011 c
8-86461
Zheks
2003-08-27 09:37
2003.12.26
Обрезать Image Shape_ом


14-86490
Dmitriy O.
2003-12-04 08:29
2003.12.26
Пьяный за рулем !


1-86434
race1
2003-12-13 07:34
2003.12.26
unicode vs. русс.


4-86601
Sergey Koshelev
2003-10-30 16:55
2003.12.26
Таймер не запускается чаще, чем через 55 msec


14-86540
Jack
2003-11-30 14:09
2003.12.26
ЧЕ2004




   Наверх