Hi all! I have been in the scripting world for just a week so this will be a newbie question...
I have to make a script that runs 24hs a day and that at exactly 11:59PM the file in which it was capturing the output of the screen is closed and then it opens a new file with the new date. The thing is that the script I modified from aspectscripting.com is not working properly: it opens the first file but at 11:59PM nothing happens... The modified script is this:
;**** START ****
proc main
integer iDay, iMonth, iYear, iHour, iMin, iSec
string sFile
ltimeints $LTIME iYear iMonth iDay iHour iMin iSec
strfmt sFile "%02d%02d%02d" iYear iMonth iDay
set capture file sFile
capture on
while 1
if iHour == 11 && iMin == 59
capture off
ltimeints $LTIME iYear iMonth iDay iHour iMin iSec
strfmt sFile "%02d%02d%02d" iYear iMonth iDay
set capture file sFile
capture on
endif
pause 60
endwhile
endproc
;**** END ****
Any ideas?
Thanks.
I have to make a script that runs 24hs a day and that at exactly 11:59PM the file in which it was capturing the output of the screen is closed and then it opens a new file with the new date. The thing is that the script I modified from aspectscripting.com is not working properly: it opens the first file but at 11:59PM nothing happens... The modified script is this:
;**** START ****
proc main
integer iDay, iMonth, iYear, iHour, iMin, iSec
string sFile
ltimeints $LTIME iYear iMonth iDay iHour iMin iSec
strfmt sFile "%02d%02d%02d" iYear iMonth iDay
set capture file sFile
capture on
while 1
if iHour == 11 && iMin == 59
capture off
ltimeints $LTIME iYear iMonth iDay iHour iMin iSec
strfmt sFile "%02d%02d%02d" iYear iMonth iDay
set capture file sFile
capture on
endif
pause 60
endwhile
endproc
;**** END ****
Any ideas?
Thanks.