本文介绍了家庭自动化系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在登录表单中创建计时器,以在上午7:00在家开启所有设备并在上午10:30关机将其关闭?

How to create a timer in the login form to switch on all devices at home at 7:00 am and switch it off at 10:30 bm?

if TextBox1.Text.Trim= Now.Hour and TextBox2.Text.Trim=  Now.Minute Then
   outport(GH643.16);
ELSE if TextBox0.Text.Trim= Now.Hour and TextBox0.Text.Trim=  Now.Minute Then
   outport(GH643.0);
End If
End If

推荐答案



这篇关于家庭自动化系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 14:44