Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.12.26;
Скачать: 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 вся ветка

Текущий архив: 2003.12.26;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.021 c
7-86569
_Narayan_
2003-10-21 15:55
2003.12.26
DLL


1-86372
Release
2003-12-15 15:35
2003.12.26
Преборазование типов


7-86580
crocodile_
2003-10-22 14:33
2003.12.26
WMI


1-86382
iKS
2003-12-13 11:06
2003.12.26
Popup-меню для TDBGridEh


1-86384
vovan1
2003-12-15 13:52
2003.12.26
hlp-файл