Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Date Script error



  • Please log in to reply
4 replies to this topic
V1P3R
  • Members
  • 28 posts
  • Last active: Jun 19 2018 12:13 PM
  • Joined: 26 Sep 2006
Please help with this script. It doesnt work as excepted.
It should write the current date +3 if its before Wednesday, and current date +5 if its after wednesday.
FormatTime,WeekDay,,WDay
if %WeekDay%>3
{
EnvAdd,date,5,D
}
else
{
EnvAdd,date,3,D
}
FormatTime,day,%date%,dd.MM.yy
Send %day%
date=

Thanks in advance guys!

BoBo
  • Guests
  • Last active:
  • Joined: --
FormatTime,WeekDay,,WDay

Date := A_Now

If %WeekDay%>3

   EnvAdd, Date, 5, D

Else

   EnvAdd, Date, 3, D

FormatTime, Day, %Date%,dd.MM.yy

Send %Day%
Not tested.

Helpy
  • Guests
  • Last active:
  • Joined: --
✓  Best Answer
Remove %% around WeekDay in the test!

BoBo
  • Guests
  • Last active:
  • Joined: --

Remove %% around WeekDay in the test!

You're damn right! :D

julyus
  • Members
  • 1 posts
  • Last active: Mar 07 2007 02:06 PM
  • Joined: 07 Mar 2007
Go'head V1P3R, test it and tell me what happens! I'm so curious about it! :wink: