freezerstuff.bas
来自「ICQ通讯程序 ICQ通讯程序 ICQ通讯程序」· BAS 代码 · 共 25 行
BAS
25 行
Attribute VB_Name = "FreezerStuff"
Option Explicit
Public exitPause As Boolean
Public Function timedPause(secs As Long)
Dim secStart As Variant
Dim secNow As Variant
Dim secDiff As Variant
Dim Temp%
exitPause = False 'this is our early way out out of the pause
secStart = Format(Now(), "mm/dd/yyyy hh:nn:ss AM/PM") 'get the starting seconds
Do While secDiff < secs
If exitPause = True Then Exit Do
secNow = Format(Now(), "mm/dd/yyyy hh:nn:ss AM/PM") 'this is the current time and Date at any itteration of the Loop
secDiff = DateDiff("s", secStart, secNow) 'this compares the start time With the current time
Temp% = DoEvents
Loop
End Function
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?