acidman Posted April 1, 2012 Share Posted April 1, 2012 Hi there I have this Application that has to be registered once A year, so how do I keep Track of The correct Date? Ive thought About a time server and getting the specific Date and time for the server, you can't use the pc's system time, then the user could easily Just reset the counter to an earlier date and time and then No registration would take place every 365 Days from Registration? Any pointer? [u]My dream is to have a dream...[/u] Link to comment Share on other sites More sharing options...
Guest Posted April 1, 2012 Share Posted April 1, 2012 I would also like to know how. I have tried before but as you said the user could just change it! Link to comment Share on other sites More sharing options...
acidman Posted April 1, 2012 Author Share Posted April 1, 2012 Yea but thats why we could use what ever method of communication from a time server, or if we could do A call to the bios, most standard users wont know how to alter it then... and who would think that the method of getting the time would be from the bios? [u]My dream is to have a dream...[/u] Link to comment Share on other sites More sharing options...
acidman Posted April 1, 2012 Author Share Posted April 1, 2012 but how does one do a call to the bios? [u]My dream is to have a dream...[/u] Link to comment Share on other sites More sharing options...
Guest Posted April 1, 2012 Share Posted April 1, 2012 Ill have a look. Link to comment Share on other sites More sharing options...
acidman Posted April 1, 2012 Author Share Posted April 1, 2012 Another Idea I have is user Account Control, to disable the altering of the date via UAC, but it all sounds Great in theory but How does one call a function for that is, the issue here is, most anti virus programs wouldnt your application to make a change anything related to the UAC then your code would most probably be defined as malicious... [u]My dream is to have a dream...[/u] Link to comment Share on other sites More sharing options...
acidman Posted April 1, 2012 Author Share Posted April 1, 2012 not AUC, gpedit.msc My mistake [u]My dream is to have a dream...[/u] Link to comment Share on other sites More sharing options...
guinness Posted April 1, 2012 Share Posted April 1, 2012 Check out this function (which you could've found by searching) and then look at http://www.timeapi.org/. Simple! But please bare in mind that even then there are ways around this. UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
ProgAndy Posted April 1, 2012 Share Posted April 1, 2012 Here is a mostly secure idea: - Store current time at start, end and all 5 Minutes to the registry, encrypted with a hash of the serial number. - On application start, check if the timestamp in the registry exsits and the time is earlier than the timestamp - Also run a timer beginning from applicationstart, error out if Timervalue > difference start time, current time *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes 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