city Posted November 7, 2006 Posted November 7, 2006 If I make an exe(au3) to my friend, I set the expired date in the exe, the exe will check the date from my html in my homepage and calculate the deffirent date for exe to consider can work or not. After the expired date the exe will auto exit after open it. Can someone tell me how to do? or other way(either java script or GCI) to do? any suggestion? Post it or send to my email : lazzygame@yahoo.com.my 10Q ^^
xcal Posted November 7, 2006 Posted November 7, 2006 Have a look at FileGetTime, _DateDiff, and probably _INetGetSource. How To Ask Questions The Smart Way
city Posted November 7, 2006 Author Posted November 7, 2006 Have a look at FileGetTime, _DateDiff, and probably _INetGetSource.#include <INet.au3>MsgBox(0,"nothing",ConsoleWrite(_INetGetSource('www.yahoo.com')))Thxq for your help ^^. but i still cant get it xD. The massege box show 1 only.
xcal Posted November 7, 2006 Posted November 7, 2006 (edited) Ok, here's a more obvious hint. #include <INet.au3> #include <Date.au3> $remote = _INetGetSource('http://www.somesite.com/pathto/time.txt') $local = FileGetTime(@ScriptFullPath, 2) $diff = _DateDiff('D', $local[0] & '/' & $local[1] & '/' & $local[2], $remote) Then, just do some evaluation on $diff. Edited November 7, 2006 by xcal How To Ask Questions The Smart Way
city Posted November 8, 2006 Author Posted November 8, 2006 #include <INet.au3>#include <Date.au3>$remote = _INetGetSource('http://www.somesite.com/pathto/time.txt')$local = FileGetTime(@ScriptFullPath, 2)$diff = _DateDiff('D', $local[0] & '/' & $local[1] & '/' & $local[2], $remote);$remote = _INetGetSource('http://www.somesite.com/pathto/time.txt')MsgBox(0,"asd",$diff)---------------------------------------------------------------------Massege Box =0--------------------------------------------------------------------xD I am too noob.
city Posted November 8, 2006 Author Posted November 8, 2006 Wait a moment. I found it can work but need to change the 'http://www.somesite.com/pathto/time.txt' (for date) every day? It that your idea? Am I rite?
xcal Posted November 8, 2006 Posted November 8, 2006 Wait a moment. I found it can work but need to change the 'http://www.somesite.com/pathto/time.txt' (for date) every day?It that your idea? Am I rite? You --- --- MeMe --- --- YouYou --- --- MeMe You Ok, I think that covers it. How To Ask Questions The Smart Way
city Posted November 8, 2006 Author Posted November 8, 2006 you too por me too noob However Thx KamBaTeh
xcal Posted November 8, 2006 Posted November 8, 2006 To get more help, you're going to have to show more effort, like posting samples of what you've tried. How To Ask Questions The Smart Way
city Posted November 8, 2006 Author Posted November 8, 2006 Yes I will. thx u How abaout checking string charater like checking login id?
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