How to Integrate Commands w/ Scripts

Discussion, questions and support.
Post Reply
Archivist
Posts: 36
Joined: Sep 21st, ’17, 18:06

Post by Archivist » Sep 21st, ’17, 21:09

Lets say I want to output some text that uses a script calculation (e.g., "You have [N days] to finish") where [N days] is today + 20 days. Is there an example that shows me how to do this?
User avatar
Marko
Posts: 1719
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Sep 21st, ’17, 21:12

You need to use Type: Command

Code: Select all

Date:=A_Now
Date+=+20, Days
FormatTime, Date, %Date%, dd/MM/yyyy 
Send, 20 days from now will be %Date%.
Archivist
Posts: 36
Joined: Sep 21st, ’17, 18:06

Post by Archivist » Sep 21st, ’17, 21:14

Thanks!
Post Reply