我想在脚本开头加个记录日志,日志名为当时的时间,然后就用参考的代码试了
MyYear = Year(Now)*1.0
MyMonth = Month(Now)*1.0
MyDay = Day(Now)*1.0
MyHour = Hour(Now)*1.0
MyMin = Minute(Now)*1.0
MySec = Second(Now)*1.0
TracePrint MyYear & MyMonth & MyDay & MyHour & MyMin & MySec
LogStart "C:\" & MyYear & MyMonth & MyDay & MyHour & MyMin & MySec & ".log"//记录日志
For i = 0 To 3
TracePrint "保存次数:" & i
Call Plugin.Msg.ShowScrTXT(0, 0, 1024, 768, "屏幕内容填写:" & i, "0000FF")
Next
LogStop //记录日志停止
TracePrint "这句不会输出到日志里!"
结果输出是"20197423742"这样的格式,我想要那种"20190704230742"这样的应该怎么改 ?
MyYear = Year(Now)*1.0
MyMonth = Month(Now)*1.0
MyDay = Day(Now)*1.0
MyHour = Hour(Now)*1.0
MyMin = Minute(Now)*1.0
MySec = Second(Now)*1.0
TracePrint MyYear & MyMonth & MyDay & MyHour & MyMin & MySec
LogStart "C:\" & MyYear & MyMonth & MyDay & MyHour & MyMin & MySec & ".log"//记录日志
For i = 0 To 3
TracePrint "保存次数:" & i
Call Plugin.Msg.ShowScrTXT(0, 0, 1024, 768, "屏幕内容填写:" & i, "0000FF")
Next
LogStop //记录日志停止
TracePrint "这句不会输出到日志里!"
结果输出是"20197423742"这样的格式,我想要那种"20190704230742"这样的应该怎么改 ?