Is there an example of a 7 day trial run code?

General Macro Scheduler discussion

Moderators: Dorian (MJT support), JRL

Post Reply
Legend
Newbie
Posts: 10
Joined: Fri Apr 04, 2014 12:11 am

Is there an example of a 7 day trial run code?

Post by Legend » Tue Jun 23, 2015 5:02 pm

Actually, I'm looking for a very simple 7 day trial run code.

Eg. Each time the program is run, it goes online check the date, if the online date is between 24 Jun 2015 and 30 Jun 2015, the program then continue executing the rest of the code. If online date is outside 24 Jun 2015 and 30 Jun 2015, then it prompt trial expired.

There is any link or example I can use for the above?

Thanks.

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Is there an example of a 7 day trial run code?

Post by Marcus Tettmar » Wed Jun 24, 2015 12:19 pm

Hi,

Where do you want it to get the date from? This can be done using the HTTPRequest function to get it from a web service, or web page.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Legend
Newbie
Posts: 10
Joined: Fri Apr 04, 2014 12:11 am

Re: Is there an example of a 7 day trial run code?

Post by Legend » Thu Jul 02, 2015 3:32 am

I just need a simple example to implement.

Currently looking at http://www.timeanddate.com/ and http://time.is/

Whichever is easier would be fine with me

fightcancer
Macro Veteran
Posts: 239
Joined: Fri Apr 15, 2005 8:32 am

Re: Is there an example of a 7 day trial run code?

Post by fightcancer » Fri Mar 10, 2017 8:03 pm

Any simple way to do this: to get the date from online? Thanks!

User avatar
JRL
Automation Wizard
Posts: 3500
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Re: Is there an example of a 7 day trial run code?

Post by JRL » Sat Mar 11, 2017 3:02 am

Code: Select all

HTTPRequest>https://www.timeanddate.com,,GET,,Web_Page
RegEx>(?<=id="ij2">).*?(?=</span>),Web_Page,0,match,nm,0
MDL>Match_1

fightcancer
Macro Veteran
Posts: 239
Joined: Fri Apr 15, 2005 8:32 am

Re: Is there an example of a 7 day trial run code?

Post by fightcancer » Sat Mar 11, 2017 5:49 am

Wow! Impressive! Thanks!

User avatar
CyberCitizen
Automation Wizard
Posts: 721
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Re: Is there an example of a 7 day trial run code?

Post by CyberCitizen » Sun Mar 12, 2017 2:37 pm

Just make note you might want to have another check in place as well in case they block internet traffic.
FIREFIGHTER

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts