AHK - 如果差异大于 10
AHK - if difference is greater than 10
每10秒自动生成一个图像文件,我的脚本的目的是在自动生成图像失败时进行提示。我已经包含了 MsgBox 以供说明似乎我检查差异的结构有误,有人可以帮忙吗?
`::
FileGetTime, Updated, C:\auto-generated-image.png, M
FormatTime, Updated, %Updated%, HHmmss
MsgBox, Time Now: %A_Hour%%A_Min%%A_Sec% ; for illustration
MsgBox, File Updated: %Updated% ; for illustration
**if (%A_Hour%%A_Min%%A_Sec% - Updated) > 10**
MsgBox, Image Auto Generation Has Failed!
return
::
FileGetTime, Updated, C:\auto-generated-image.png, M
var1 := A_now
var2 := Updated
var3 := A_now - Updated
if (var3 > 10)
MsgBox, Image Auto Generation Has Failed
return
如果有其他方法,请评论,谢谢
每10秒自动生成一个图像文件,我的脚本的目的是在自动生成图像失败时进行提示。我已经包含了 MsgBox 以供说明似乎我检查差异的结构有误,有人可以帮忙吗?
`::
FileGetTime, Updated, C:\auto-generated-image.png, M
FormatTime, Updated, %Updated%, HHmmss
MsgBox, Time Now: %A_Hour%%A_Min%%A_Sec% ; for illustration
MsgBox, File Updated: %Updated% ; for illustration
**if (%A_Hour%%A_Min%%A_Sec% - Updated) > 10**
MsgBox, Image Auto Generation Has Failed!
return
::
FileGetTime, Updated, C:\auto-generated-image.png, M
var1 := A_now
var2 := Updated
var3 := A_now - Updated
if (var3 > 10)
MsgBox, Image Auto Generation Has Failed
return
如果有其他方法,请评论,谢谢