Get the real date?
Get the real date?
I understand that you can use things like CurrentDateTime and FormatTime to output the system date, but is there a way to get the global date from a website or such so the user can't manipulate his system to bypass any date restrictions and such I have in my code? Or does AHK not have any networking compatibility?
Re: Get the real date?
you could use urlDownloadToFile and then parse out the text from the html with stringGetPos and stringMid. the simpler the website/html the better since the download will be faster and it might be easy to parse.
Re: Get the real date?
I don't know if this will help with what you want, but I thought I'd share it:
urls: get date modified - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=37145
urls: get date modified - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=37145
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: Get the real date?
GetNetworkTime()
The returned time is UTC.
The returned time is UTC.