naru Posted March 14, 2019 Posted March 14, 2019 i want to make my program expire using this script : #include <date.au3> $expdate = Floor(_DateToDayValue("2019", "03", "10")) ;Julian date since (days since noon 4713 BC January 1) If (Floor(_DateToDayValue(@YEAR, @MON, @MDAY)) > $expdate) Then MsgBox(0, "Error", "License has expired") ;run activation program Exit EndIf But it was read current time of pc, if i set my computer time as before "2019", "03", "10", The code is working again. is there anyway to check the time using internet time ?
Developers Jos Posted March 14, 2019 Developers Posted March 14, 2019 Ofcourse, but what do you do when the Internet is not available? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
naru Posted March 15, 2019 Author Posted March 15, 2019 Just now, Jos said: Ofcourse, but what do you do when the Internet is not available? Jos @Jos If I have a script that works in an Internet explorer, then I need to have internet to work. If that's not an internet then the whole script is also useless for me.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now