Amen Posted November 28, 2005 Share Posted November 28, 2005 (edited) How can i Calculate if my prog Expired ? (My Prog must run only for one month).Is there any way to retrieve current date asking Internet and not a pc or a server on the LAN? Edited November 28, 2005 by Amen Plugged ThoughtsQBsick? check my Old staff (New Launchers to Work with Windows.Thnx to Autoit!)Game Development ToolsPortes (A Backgammon game)Ball (An Arkanoid Style game)Au3? SecretProgz - Reveals Commands that can be used on your system CleanOut - Uninstall leftovers Enable windows XP Autologon. Stop Windows Auto Sharing your hard drives (C$,D$,etc) D-Link - Create a dynamic link.Useful for server shortcuts Fun - How would your name sounds in Japanese,Russian or Reventian? Fix_srt - Shift a subtitle (.srt) some secs +/- Link to comment Share on other sites More sharing options...
kpu Posted November 28, 2005 Share Posted November 28, 2005 What you could do is have your program write the current date to a file or a reg key. You could use the "_StringEncrypt" to encrypt the date ..?? http://www.kpunderground.com Link to comment Share on other sites More sharing options...
MSLx Fanboy Posted November 28, 2005 Share Posted November 28, 2005 InetGet or use COM for the below address:http://nist.time.gov/timezone.cgi?Eastern/d/-5 Writing AutoIt scripts since _DateAdd("d", -2, _NowCalcDate()) Link to comment Share on other sites More sharing options...
Amen Posted December 2, 2005 Author Share Posted December 2, 2005 (edited) InetGet or use COM for the below address:http://nist.time.gov/timezone.cgi?Eastern/d/-5that's exactly i was looking for.Thank u very much! If i had any Alternate pages it would be perfect. Edited December 2, 2005 by Amen Plugged ThoughtsQBsick? check my Old staff (New Launchers to Work with Windows.Thnx to Autoit!)Game Development ToolsPortes (A Backgammon game)Ball (An Arkanoid Style game)Au3? SecretProgz - Reveals Commands that can be used on your system CleanOut - Uninstall leftovers Enable windows XP Autologon. Stop Windows Auto Sharing your hard drives (C$,D$,etc) D-Link - Create a dynamic link.Useful for server shortcuts Fun - How would your name sounds in Japanese,Russian or Reventian? Fix_srt - Shift a subtitle (.srt) some secs +/- Link to comment Share on other sites More sharing options...
Amen Posted December 2, 2005 Author Share Posted December 2, 2005 ok Function Works fine! hope they give always the right date.he ; ---------------------------------------------------------------------------- ; ; AutoIt Version: 3.1.0 ; Author: Amen <BlackLily@freemail.gr> ; ; Script Function: Returns Global Date ; ---------------------------------------------------------------------------- Func _GlobalDate() Local $Day[8],$Datefile,$_Date $Datefile=@TempDir&"\Time.html" $Day[1]="Monday" $Day[2]="Tuesday" $Day[3]="Wednesday" $Day[4]="Thursday" $Day[5]="Friday" $Day[6]="Saturday" $Day[7]="Sunday" InetGet("http://nist.time.gov/timezone.cgi?Eastern/d/-5",$Datefile,1) $_Date = FileRead($DAtefile, FileGetSize($DAtefile)) FileDelete($DAtefile) For $i=1 to 7 $msg=StringInStr($_Date,$Day[$i]);Holds potition of day found If $msg>0 then $_Date=StringTrimLeft($_Date,$msg-1);Holds Day and after string $msg=StringInStr($_Date,"<");Holds the potition of first "<" found If $msg>0 then $_Date=StringMid($_Date,1,$msg-1);Holds date.Format: Friday,December 2,2005 ExitLoop EndIf EndIf NExt return $_Date EndFunc Plugged ThoughtsQBsick? check my Old staff (New Launchers to Work with Windows.Thnx to Autoit!)Game Development ToolsPortes (A Backgammon game)Ball (An Arkanoid Style game)Au3? SecretProgz - Reveals Commands that can be used on your system CleanOut - Uninstall leftovers Enable windows XP Autologon. Stop Windows Auto Sharing your hard drives (C$,D$,etc) D-Link - Create a dynamic link.Useful for server shortcuts Fun - How would your name sounds in Japanese,Russian or Reventian? Fix_srt - Shift a subtitle (.srt) some secs +/- Link to comment Share on other sites More sharing options...
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