- 人气:
- 放大
- 缩小
- 二维码
- 赞赏
delphi 简单的定时程序代码
procedure TForm1.Timer1Timer(Sender: TObject);
var
Hn,Mn,Sn:integer;
Hour,Min,Sec,MSec: Word;
begin
Hn:=10;
mn:=59;
sn:=50;
// Decodedate(); 年月日
DecodeTime(now,Hour,Min,Sec,MSec);
//当时 分 秒 相等时
if (Hn=Hour)and(Mn=Min)and(Sn=Sec) then
begin
//触发
end;
end;