MikeTranser Posted February 15, 2010 Share Posted February 15, 2010 (edited) Hello i have problem in trial version. I need script (If you Change you date Then program is closed or say msgbox. $sScript_Name = "Test" If RegRead("HKCU\Software\Microsoft\Windows\Current Version", $sScript_Name) = "" Then RegWrite("HKCU\Software\Microsoft\Windows\Current Version", $sScript_Name, "REG_SZ", _StringEncrypt(1, _NowCalc(), @ComputerName)) SetError(0) EndIf $sStartDate = _StringEncrypt(0, RegRead("HKCU\Software\Microsoft\Windows\Current Version", $sScript_Name), @ComputerName) $diff = _DateDiff("D", $sStartDate, _NowCalc()) If $diff > 7 Then MsgBox(0, $sScript_Name, "You hae left days.") Premium() Else MsgBox(0, $sScript_Name, "You have " & 7 - $diff & " days.") EndIf Today is 10 Febr. I change for 5 february and i have a massage You have 12 days left. ;/ I need script blook change date. Edited February 15, 2010 by MikeTranser Link to comment Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now