0

我正在尝试实现一些简单的事情,但无法理解它。

我目前没有代码,但我正在尝试创建一个在倒计时计时器中VBScript使用,HTA该计时器一直运行到XX:58- 所以它在每小时的第 58 分钟开始时结束,然后它可以重新开始倒计时,直到下一个第 58 分钟小时后......等等。

有谁知道如何实现这一点,以便我可以在 HTA 中对其进行格式化?

非常感谢。

4

1 回答 1

0

我通常在我的 HTA 中使用 JScript(做了很多)。这是一种可能的解决方案(使用 JScript)。您应该能够将其转换为 VBS,或者在需要时直接使用:

<script type='text/javascript'>
//Check for the 58th minute once every minute
var Minute = 60000;

//Create a count-down timer to run my function every minute
var CountDownTimer = setInterval(function(){

  //If this is NOT the 58th minute, do nothing
  if ((new Date()).getMinutes() < 58) return;

  //Your code here...
}, Minute);
</script>

干杯!

于 2013-05-09T22:42:50.310 回答