Jump to content

Recommended Posts

Posted

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 ?

Posted
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.

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

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...