帮我加上指定在每天15点15分时间发短信的代码好吗variable:duo=0,kong=0;
if bkt and duo=1 and currenttime>145900 and currenttime<=150000 then begin
sendphonemsg('公式模型运行方向多',1);
end
if skt and kong=1 and currenttime>145900 and currenttime<=150000 then begin
sendphonemsg('公式模型运行方向空',1);
end
if time=closetime(0) then begin
duo:=0;
kong:=0;
end
这这段代码不是已经有想手机监控发消息的语句了吗?你是需要什么?
我是需要在指定时间在14点50分发送短信 上面发短信的时间是在14点59分至15点之间的时间段 我想改一下固定时间
帮你在时间上改成了,14:55:00到14:55:30
使用的是一个时段作为判断,保证其执行效果。时间你可以自己改的。
要是只要在14:55分则用 if bkt and duo=1 and currenttime = 145500 then begin
variable:duo=0,kong=0;
if bkt and duo=1 and currenttime>145500 and currenttime<=145530 then begin
sendphonemsg('公式模型运行方向多',1);
end
if skt and kong=1 and currenttime>145500 and currenttime<=145530 then begin
sendphonemsg('公式模型运行方向空',1);
end
if time=closetime(0) then begin
duo:=0;
kong:=0;
end
您好老师我在代码最后面加上了下面这些代码 为什么没有短信提醒啊
variable:duo=0,kong=0;
if bkt and duo=1 and currenttime>145500 and currenttime<=145530 then begin
sendphonemsg('公式模型运行方向多',1);
end
if skt and kong=1 and currenttime>145500 and currenttime<=145530 then begin
sendphonemsg('公式模型运行方向空',1);
end
if time=closetime(0) then begin
duo:=0;
kong:=0;
end
sendphonemsg('公式模型运行方向多',1);
直接执行这句话看呢,看下是否bkt和duo的条件没有满足
老师我的是64位电脑 安装的32位金字塔软件 您的意思是在信号转多或转空的时候才发短信吗? 我的目的是想在没有多空转换的时候也发送短信 您看可以帮我在修改一下吗