Code: Select all
ExtensionConvert()
ExtensionConvert() {
LABEL_ExtensionConvert:
tooltip(A_ThisLabel " : " a++) ; action too long >>> so timer off
SetTimer("LABEL_ExtensionConvert", "Off")
FileMove("c:\temp\*.S*24", "c:\temp\*.S$$")
FileMove("c:\temp\*.K*24", "c:\temp\*.K$$")
; run timer again
SetTimer("LABEL_ExtensionConvert", 998)
RETURN ;not needed
}
Code: Select all
ExtensionConvert()
ExtensionConvert() {
LABEL_ExtensionConvert:
tooltip(A_ThisLabel " : " a++) ; action too long >>> so timer off
SetTimer("LABEL_ExtensionConvert", "Off") ; Erro: Target label does not exist.
; Specifically: LABEL_ExtensionConvert
FileMove("c:\temp\*.S*24", "c:\temp\*.S$$")
FileMove("c:\temp\*.K*24", "c:\temp\*.K$$")
SetTimer("LABEL_ExtensionConvert", 998)
RETURN
}
Code: Select all
ExtensionConvert() {
LABEL_ExtensionConvert:
tooltip(A_ThisLabel " : " a++) ; action too long >>> so timer off
if A_ThisLabel ; void first call when A_ThisLabel is ""
SetTimer(A_ThisLabel, "Off") ; Erro: Target label does not exist.
; Specifically: LABEL_ExtensionConvert
FileMove("c:\temp\*.S*24", "c:\temp\*.S$$")
FileMove("c:\temp\*.K*24", "c:\temp\*.K$$")
if A_ThisLabel
SetTimer(A_ThisLabel, 998)
else SetTimer("LABEL_ExtensionConvert", 998)
RETURN
}
There no scope problem with label due to settimer calls runs and A_ThisLabel is set correctly.