Hello,
Could someone show me how to use the FTP/HTTP commands to grab the date and time from the internet?
I want my program to be able to verify the date and time when it runs. But I don't want it to rely on the system clock.
I just want a variable for the date and time to be set, either combined or two variables, it doesn't matter.
Thanks a bunch,
PepsiHog
MS v11
Also, is there a way to confirm connection to the internet? I have DSL.
I can always make a work-around for this one, so not as important.
How to grab the date and time from the Web
Moderators: JRL, Dorian (MJT support)
How to grab the date and time from the Web
Windows 7
PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)
The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!
PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)
The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!
Here is something simple
Code: Select all
Let>comma=,
HTTPRequest>http://json-time.appspot.com/time.json,,GET,,result
StringReplace>result,%LF%,,result
StringReplace>result,{,,result
StringReplace>result,},,result
Separate>result,comma,TimeVars
Let>myHour=TimeVars_2
Let>myDateTime=TimeVars_4
Let>mySeconds=TimeVars_5
Let>myMinutes=TimeVars_7
MessageModal>myHour
MessageModal>myDateTime
MessageModal>mySeconds
MessageModal>myMinutes
Here is something simple
Thanks, adroege. That's just what I needed.
PepsiHog

PepsiHog
Windows 7
PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)
The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!
PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)
The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!