Code:
$ltext= "WARNING! By accessing this system you are consenting to system monitoring" +@crlf+
"and agreeing to follow the Agency's policies regarding acceptable use," +@crlf+
"protection of information resources, and confidential health care information." +@crlf+
"Improper or illegal use of this computer may subject you to an investigation" +@crlf+
"and could result in either disciplinary action in accordance with the Agency's" +@crlf+
"standards, or possible civil or criminal penalties." +@crlf
$=WriteValue("$HKLMSMWNTCV\Winlogon","LegalNoticeCaption","Unauthorized Use Prohibited",REG_SZ)
$=WriteValue("$HKLMSMWNTCV\Winlogon","LegalNoticeText",$ltext,REG_SZ)
1 sec might be a bit much... but I could see 3-5 sec.
you might get away with cleaning resources by making it run a new copy of itself and then terminating every hour or whatever... depends on what the nature of the mem leak is:
if $hour<>$lasthour
run "cmd /c kix32 bigbrother.kix"
quit
endif