1、打开按键精灵,点击新建脚本,然后会弹出空白的脚本界面。
![](https://video.ask-data.xyz/img.php?b=https://iknow-pic.cdn.bcebos.com/09fa513d269759ee1284a358bcfb43166c22df49?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
2、点击【控制命令】,创建一个表达式为true的循环命令。
![](https://video.ask-data.xyz/img.php?b=https://iknow-pic.cdn.bcebos.com/dcc451da81cb39db7e5e56c2de160924aa183083?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
3、点开源文件,在表达式后面创建两个变量“小时”“分钟”,并且后面用一个实时语句(Now)。
![](https://video.ask-data.xyz/img.php?b=https://iknow-pic.cdn.bcebos.com/21a4462309f79052a1cb84ad02f3d7ca7acbd549?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
4、添加判断语句“If”,如果小时=(你想要设定的时间几点),分钟=(你想设定的时间几分),
![](https://video.ask-data.xyz/img.php?b=https://iknow-pic.cdn.bcebos.com/1ad5ad6eddc451da47823d7fb8fd5266d0163229?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
5、添加【跳出循环】语句,结束判断语句“If”。
![](https://video.ask-data.xyz/img.php?b=https://iknow-pic.cdn.bcebos.com/c9fcc3cec3fdfc0341df3d2bda3f8794a5c226fa?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)
6、点开普通界面,把循环结束语句向下移动到最后,定时脚本就完成了,在本脚本后面把需要用到的游戏操作复制过来添加进去启动即可,到了预设的时间,脚本会自动启动开始预设的脚本操作!
![](https://video.ask-data.xyz/img.php?b=https://iknow-pic.cdn.bcebos.com/5bafa40f4bfbfbed4aba07eb76f0f736aec31f46?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)