Logic and RegEx sample

Discuss RoboTask here
Post Reply
kunkel321
Posts: 30
Joined: Sun Mar 15, 2020 5:23 pm

Logic and RegEx sample

Post by kunkel321 »

Mostly I just wanted to share this Task I made that seems to work. :D
Also, let me know if anyone would have set up the logic flow differently.

Set a hotkey to trigger the Task, then use your mouse to select one line of text from the quote box below. The Task will extract the time and date. My end goal is that the time, date, location, and subject will all get extracted, then put into an Outlook Calendar item. Note that Outlook is pretty forgiving with the date entry box. For example if you put "2 weeks Wednesday" it will change it to that date.

Here are a few sample text strings that will get parsed correctly.
Before school, Wednesday after next
The 5th of August after school.
Next Wednesday at noon.
Next week on Wednes -- 4:00 pm.
After school next Thurs around 1:30 pm.
4-4-2020 @ 4:20 pm
Meh.. I just realized it won't parse "4pm."

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|327331060
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task7"
Hide=INTEGER|0
ID=INTEGER|657361492
LogOnAsUser=INTEGER|1
Name=STRING|"DateTimeGetter"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action10=FOLDER
Action11=FOLDER
Action12=FOLDER
Action13=FOLDER
Action14=FOLDER
Action15=FOLDER
Action16=FOLDER
Action17=FOLDER
Action18=FOLDER
Action19=FOLDER
Action2=FOLDER
Action20=FOLDER
Action21=FOLDER
Action22=FOLDER
Action23=FOLDER
Action24=FOLDER
Action25=FOLDER
Action26=FOLDER
Action27=FOLDER
Action28=FOLDER
Action29=FOLDER
Action3=FOLDER
Action30=FOLDER
Action31=FOLDER
Action32=FOLDER
Action33=FOLDER
Action34=FOLDER
Action35=FOLDER
Action36=FOLDER
Action37=FOLDER
Action38=FOLDER
Action39=FOLDER
Action4=FOLDER
Action40=FOLDER
Action41=FOLDER
Action42=FOLDER
Action43=FOLDER
Action44=FOLDER
Action45=FOLDER
Action46=FOLDER
Action47=FOLDER
Action48=FOLDER
Action49=FOLDER
Action5=FOLDER
Action50=FOLDER
Action51=FOLDER
Action52=FOLDER
Action53=FOLDER
Action54=FOLDER
Action55=FOLDER
Action56=FOLDER
Action57=FOLDER
Action58=FOLDER
Action59=FOLDER
Action6=FOLDER
Action60=FOLDER
Action61=FOLDER
Action62=FOLDER
Action7=FOLDER
Action8=FOLDER
Action9=FOLDER

[Actions\Action1]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//Select (highlight) some text that has a time in it.//"
Params=FOLDER

[Actions\Action1\Params]
comment=STRING|"Select (highlight) some text that has a time in it.//"

[Actions\Action10]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""RETIME"" with value ""7:30am"""
Params=FOLDER

[Actions\Action10\Params]
expand=STRING|"0"
varname=STRING|"RETIME"
varvalue=STRING|"7:30am"

[Actions\Action11]
ActionID=STRING|"A_FLOW_ELSEIF"
Enabled=INTEGER|-1
Name=STRING|"ElseIf reTIme = ""noon""  Then"
Params=FOLDER

[Actions\Action11\Params]
case=STRING|"0"
connection=STRING|"0"
count=STRING|"1"
operator=STRING|"0"
type=STRING|"0"
value1=STRING|"{reTime(0)}"
value2=STRING|"noon"

[Actions\Action12]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""RETIME"" with value ""12:00pm"""
Params=FOLDER

[Actions\Action12\Params]
expand=STRING|"0"
varname=STRING|"RETIME"
varvalue=STRING|"12:00pm"

[Actions\Action13]
ActionID=STRING|"A_FLOW_ELSEIF"
Enabled=INTEGER|-1
Name=STRING|"ElseIf reTIme = ""after school""  Then"
Params=FOLDER

[Actions\Action13\Params]
case=STRING|"0"
connection=STRING|"0"
count=STRING|"1"
operator=STRING|"0"
type=STRING|"0"
value1=STRING|"{reTime(0)}"
value2=STRING|"after school"

[Actions\Action14]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""RETIME"" with value ""2:45pm"""
Params=FOLDER

[Actions\Action14\Params]
expand=STRING|"0"
varname=STRING|"RETIME"
varvalue=STRING|"2:45pm"

[Actions\Action15]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"

[Actions\Action16]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"

[Actions\Action17]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"/////////////////////////////////////////////////////////////////////////"
Params=FOLDER

[Actions\Action17\Params]
comment=STRING|"///////////////////////////////////////////////////////////////////////"

[Actions\Action18]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""RENUMDATE"" with value """""
Params=FOLDER

[Actions\Action18\Params]
expand=STRING|"0"
varname=STRING|"RENUMDATE"

[Actions\Action19]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""REMONTHDAYDATE"" with value """""
Params=FOLDER

[Actions\Action19\Params]
expand=STRING|"0"
varname=STRING|"REMONTHDAYDATE"

[Actions\Action2]
ActionID=STRING|"A_CLIPBOARD_COPY"
Enabled=INTEGER|-1
Name=STRING|"Copy"
Params=FOLDER

[Actions\Action2\Params]
mode=STRING|"1"

[Actions\Action20]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""REMONTHDATE"" with value """""
Params=FOLDER

[Actions\Action20\Params]
expand=STRING|"0"
varname=STRING|"REMONTHDATE"

[Actions\Action21]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""REDAYDATE"" with value """""
Params=FOLDER

[Actions\Action21\Params]
expand=STRING|"0"
varname=STRING|"REDAYDATE"

[Actions\Action22]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""RE2WEEKS"" with value """""
Params=FOLDER

[Actions\Action22\Params]
expand=STRING|"0"
varname=STRING|"RE2WEEKS"

[Actions\Action23]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""RENEXTWEEK"" with value """""
Params=FOLDER

[Actions\Action23\Params]
expand=STRING|"0"
varname=STRING|"RENEXTWEEK"

[Actions\Action24]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""REWEEKDAY"" with value """""
Params=FOLDER

[Actions\Action24\Params]
expand=STRING|"0"
varname=STRING|"REWEEKDAY"

[Actions\Action25]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//~~~ GET THE DATE as M/D/YY~~~~//"
Params=FOLDER

[Actions\Action25\Params]
comment=STRING|"~~~ GET THE DATE as M/D/YY~~~~//"

[Actions\Action26]
ActionID=STRING|"A_REGEXP_MATCH"
Enabled=INTEGER|-1
Name=STRING|"RegExp reNumDate Match"
Params=FOLDER

[Actions\Action26\Params]
anchored=STRING|"0"
case=STRING|"1"
extended=STRING|"0"
line00000000=STRING|"{haystack}"
linecount=STRING|"1"
multiline=STRING|"0"
noautocapture=STRING|"0"
pattern=STRING|"\b(([0-9]|10|11|12)[-./]([0-2]?[0-9])[-./](20)?[0-9][0-9])"
savesubexpression=STRING|"1"
singleline=STRING|"0"
subexpressionpos=STRING|"0"
subexpressionvar=STRING|"reNumDate"
ungreedy=STRING|"0"
useexternal=STRING|"0"
variable=STRING|"found"

[Actions\Action27]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If found = True"
Params=FOLDER

[Actions\Action27\Params]
case=STRING|"0"
connection=STRING|"0"
count=STRING|"1"
operator=STRING|"0"
type=STRING|"3"
value1=STRING|"{found}"
value2=STRING|"True"

[Actions\Action28]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""MYDATE"" with value ""{reNumDate(0)}"""
Params=FOLDER

[Actions\Action28\Params]
expand=STRING|"0"
varname=STRING|"MYDATE"
varvalue=STRING|"{reNumDate(0)}"

[Actions\Action29]
ActionID=STRING|"A_FLOW_ELSE"
Enabled=INTEGER|-1
Name=STRING|"Else"

[Actions\Action3]
ActionID=STRING|"A_CLIPBOARD_GET"
Enabled=INTEGER|-1
Name=STRING|"Get Text"
Params=FOLDER

[Actions\Action3\Params]
variable=STRING|"haystack"

[Actions\Action30]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//~~~ GET THE DATE as MMM D ~~~~//"
Params=FOLDER

[Actions\Action30\Params]
comment=STRING|"~~~ GET THE DATE as MMM D ~~~~//"

[Actions\Action31]
ActionID=STRING|"A_REGEXP_MATCH"
Enabled=INTEGER|-1
Name=STRING|"RegExp reMonthDayDate Match"
Params=FOLDER

[Actions\Action31\Params]
anchored=STRING|"0"
case=STRING|"1"
extended=STRING|"0"
line00000000=STRING|"{haystack}"
linecount=STRING|"1"
multiline=STRING|"0"
noautocapture=STRING|"0"
pattern=STRING|"\b((Jan|Feb)(ru(ary)?)?|Mar(ch)?|Apr(il)?|May|Jun(e)?|Jul(y)?|Aug(ust)?|(Sep(tem)?|Oct(o)?|Nov|Dec)(em)?(ber)?)\s?(?<!:)([1-2]?[0-9]|30|31)(st|nd|rd|th)?(?!:)\b"
savesubexpression=STRING|"1"
singleline=STRING|"0"
subexpressionpos=STRING|"0"
subexpressionvar=STRING|"reMonthDayDate"
ungreedy=STRING|"0"
useexternal=STRING|"0"
variable=STRING|"found"

[Actions\Action32]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If found = True"
Params=FOLDER

[Actions\Action32\Params]
case=STRING|"0"
connection=STRING|"0"
count=STRING|"1"
operator=STRING|"0"
type=STRING|"3"
value1=STRING|"{found}"
value2=STRING|"True"

[Actions\Action33]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""MYDATE"" with value ""{reMonthDayDate(0)}"""
Params=FOLDER

[Actions\Action33\Params]
expand=STRING|"0"
varname=STRING|"MYDATE"
varvalue=STRING|"{reMonthDayDate(0)}"

[Actions\Action34]
ActionID=STRING|"A_FLOW_ELSE"
Enabled=INTEGER|-1
Name=STRING|"Else"

[Actions\Action35]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//~~~ GET MMM  and D separately ~~~//"
Params=FOLDER

[Actions\Action35\Params]
comment=STRING|"~~~ GET MMM  and D separately ~~~//"

[Actions\Action36]
ActionID=STRING|"A_REGEXP_MATCH"
Enabled=INTEGER|-1
Name=STRING|"RegExp reMonthDate Match"
Params=FOLDER

[Actions\Action36\Params]
anchored=STRING|"0"
case=STRING|"1"
extended=STRING|"0"
line00000000=STRING|"{haystack}"
linecount=STRING|"1"
multiline=STRING|"0"
noautocapture=STRING|"0"
pattern=STRING|"\b((Jan|Feb)(ru(ary)?)?|Mar(ch)?|Apr(il)?|May|Jun(e)?|Jul(y)?|Aug(ust)?|(Sep(tem)?|Oct(o)?|Nov|Dec)(em)?(ber)?)\b"
savesubexpression=STRING|"1"
singleline=STRING|"0"
subexpressionpos=STRING|"0"
subexpressionvar=STRING|"reMonthDate"
ungreedy=STRING|"0"
useexternal=STRING|"0"
variable=STRING|"foundMonth"

[Actions\Action37]
ActionID=STRING|"A_REGEXP_MATCH"
Enabled=INTEGER|-1
Name=STRING|"RegExp reDayDate Match"
Params=FOLDER

[Actions\Action37\Params]
anchored=STRING|"0"
case=STRING|"1"
extended=STRING|"0"
line00000000=STRING|"{haystack}"
linecount=STRING|"1"
multiline=STRING|"0"
noautocapture=STRING|"0"
pattern=STRING|"\b(?<!:)([1-2]?[0-9]|30|31)(st|nd|rd|th)?(?!:)\b"
savesubexpression=STRING|"1"
singleline=STRING|"0"
subexpressionpos=STRING|"0"
subexpressionvar=STRING|"reDayDate"
ungreedy=STRING|"0"
useexternal=STRING|"0"
variable=STRING|"foundDay"

[Actions\Action38]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If foundMonth AND foundDay = True"
Params=FOLDER

[Actions\Action38\Params]
case=STRING|"0"
case#1=STRING|"0"
connection=STRING|"0"
count=STRING|"2"
operator=STRING|"0"
operator#1=STRING|"0"
type=STRING|"3"
type#1=STRING|"3"
value1=STRING|"{foundMonth}"
value1#1=STRING|"{foundDay}"
value2=STRING|"True"

[Actions\Action39]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""MYDATE"" with value ""{reMonthDate(0)} {reDayDate(0)}"""
Params=FOLDER

[Actions\Action39\Params]
expand=STRING|"0"
varname=STRING|"MYDATE"
varvalue=STRING|"{reMonthDate(0)} {reDayDate(0)}"

[Actions\Action4]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""RETIME"" with value """""
Params=FOLDER

[Actions\Action4\Params]
expand=STRING|"0"
varname=STRING|"RETIME"

[Actions\Action40]
ActionID=STRING|"A_FLOW_ELSE"
Enabled=INTEGER|-1
Name=STRING|"Else"

[Actions\Action41]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//~~~ GET Two Weeks from DDD ~~~//"
Params=FOLDER

[Actions\Action41\Params]
comment=STRING|"~~~ GET Two Weeks from DDD ~~~//"

[Actions\Action42]
ActionID=STRING|"A_REGEXP_MATCH"
Enabled=INTEGER|-1
Name=STRING|"RegExp re2Weesks Match"
Params=FOLDER

[Actions\Action42\Params]
anchored=STRING|"0"
case=STRING|"1"
extended=STRING|"0"
line00000000=STRING|"{haystack}"
linecount=STRING|"1"
multiline=STRING|"0"
noautocapture=STRING|"0"
pattern=STRING|"(((in\s)?(2|two) weeks)|((week )?after next))"
savesubexpression=STRING|"1"
singleline=STRING|"0"
subexpressionpos=STRING|"0"
subexpressionvar=STRING|"re2weeks"
ungreedy=STRING|"0"
useexternal=STRING|"0"
variable=STRING|"found2weeks"

[Actions\Action43]
ActionID=STRING|"A_REGEXP_MATCH"
Enabled=INTEGER|-1
Name=STRING|"RegExp reWeekday Match"
Params=FOLDER

[Actions\Action43\Params]
anchored=STRING|"0"
case=STRING|"1"
extended=STRING|"0"
line00000000=STRING|"{haystack}"
linecount=STRING|"1"
multiline=STRING|"0"
noautocapture=STRING|"0"
pattern=STRING|"\b(((Mon|Tue(s)?|Wed(nes|s)?|Thu(rs|r)?|Fri|Sat(ur)?|Sun))(day|d)?|(day\safter\s)?tomorrow)\b"
savesubexpression=STRING|"1"
singleline=STRING|"0"
subexpressionpos=STRING|"0"
subexpressionvar=STRING|"reWeekday"
ungreedy=STRING|"0"
useexternal=STRING|"0"
variable=STRING|"foundWeekday"

[Actions\Action44]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If foundMonth AND foundDay = True"
Params=FOLDER

[Actions\Action44\Params]
case=STRING|"0"
case#1=STRING|"0"
connection=STRING|"0"
count=STRING|"2"
operator=STRING|"0"
operator#1=STRING|"0"
type=STRING|"3"
type#1=STRING|"3"
value1=STRING|"{found2weeks}"
value1#1=STRING|"{foundWeekday}"
value2=STRING|"True"

[Actions\Action45]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""MYDATE"" with value ""2 weeks {reWeekday(0)}"""
Params=FOLDER

[Actions\Action45\Params]
expand=STRING|"0"
varname=STRING|"MYDATE"
varvalue=STRING|"2 weeks {reWeekday(0)}"

[Actions\Action46]
ActionID=STRING|"A_FLOW_ELSE"
Enabled=INTEGER|-1
Name=STRING|"Else"

[Actions\Action47]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//~~~~~ GET Next DDD ~~~~~//"
Params=FOLDER

[Actions\Action47\Params]
comment=STRING|"~~~~~ GET Next DDD ~~~~~//"

[Actions\Action48]
ActionID=STRING|"A_REGEXP_MATCH"
Enabled=INTEGER|-1
Name=STRING|"RegExp reNextWeek Match"
Params=FOLDER

[Actions\Action48\Params]
anchored=STRING|"0"
case=STRING|"1"
extended=STRING|"0"
line00000000=STRING|"{haystack}"
linecount=STRING|"1"
multiline=STRING|"0"
noautocapture=STRING|"0"
pattern=STRING|"(next( week)?)"
savesubexpression=STRING|"1"
singleline=STRING|"0"
subexpressionpos=STRING|"0"
subexpressionvar=STRING|"reNextWeek"
ungreedy=STRING|"0"
useexternal=STRING|"0"
variable=STRING|"foundNextWeek"

[Actions\Action49]
ActionID=STRING|"A_REGEXP_MATCH"
Enabled=INTEGER|-1
Name=STRING|"RegExp reWeekday Match"
Params=FOLDER

[Actions\Action49\Params]
anchored=STRING|"0"
case=STRING|"1"
extended=STRING|"0"
line00000000=STRING|"{haystack}"
linecount=STRING|"1"
multiline=STRING|"0"
noautocapture=STRING|"0"
pattern=STRING|"\b(((Mon|Tue(s)?|Wed(nes|s)?|Thu(rs|r)?|Fri|Sat(ur)?|Sun))(day|d)?|(day\safter\s)?tomorrow)\b"
savesubexpression=STRING|"1"
singleline=STRING|"0"
subexpressionpos=STRING|"0"
subexpressionvar=STRING|"reWeekday"
ungreedy=STRING|"0"
useexternal=STRING|"0"
variable=STRING|"foundWeekday"

[Actions\Action5]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//~~~~~~~ GET THE TIME ~~~~~~~~//"
Params=FOLDER

[Actions\Action5\Params]
comment=STRING|"~~~~~~~ GET THE TIME ~~~~~~~~//"

[Actions\Action50]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If foundMonth AND foundDay = True"
Params=FOLDER

[Actions\Action50\Params]
case=STRING|"0"
case#1=STRING|"0"
connection=STRING|"0"
count=STRING|"2"
operator=STRING|"0"
operator#1=STRING|"0"
type=STRING|"3"
type#1=STRING|"3"
value1=STRING|"{foundNextWeek}"
value1#1=STRING|"{foundWeekday}"
value2=STRING|"True"

[Actions\Action51]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""MYDATE"" with value ""next {reWeekday(0)}"""
Params=FOLDER

[Actions\Action51\Params]
expand=STRING|"0"
varname=STRING|"MYDATE"
varvalue=STRING|"next {reWeekday(0)}"

[Actions\Action52]
ActionID=STRING|"A_FLOW_ELSE"
Enabled=INTEGER|-1
Name=STRING|"Else"

[Actions\Action53]
ActionID=STRING|"A_REGEXP_MATCH"
Enabled=INTEGER|-1
Name=STRING|"RegExp reWeekday Match"
Params=FOLDER

[Actions\Action53\Params]
anchored=STRING|"0"
case=STRING|"1"
extended=STRING|"0"
line00000000=STRING|"{haystack}"
linecount=STRING|"1"
multiline=STRING|"0"
noautocapture=STRING|"0"
pattern=STRING|"\b(((Mon|Tue(s)?|Wed(nes|s)?|Thu(rs|r)?|Fri|Sat(ur)?|Sun))(day|d)?|(day\safter\s)?tomorrow)\b"
savesubexpression=STRING|"1"
singleline=STRING|"0"
subexpressionpos=STRING|"0"
subexpressionvar=STRING|"reWeekday"
ungreedy=STRING|"0"
useexternal=STRING|"0"
variable=STRING|"foundWeekday"

[Actions\Action54]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If foundMonth AND foundDay = True"
Params=FOLDER

[Actions\Action54\Params]
case=STRING|"0"
connection=STRING|"0"
count=STRING|"1"
operator=STRING|"0"
type=STRING|"3"
value1=STRING|"{foundWeekday}"

[Actions\Action55]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""MYDATE"" with value ""{reWeekday(0)}"""
Params=FOLDER

[Actions\Action55\Params]
expand=STRING|"0"
varname=STRING|"MYDATE"
varvalue=STRING|"{reWeekday(0)}"

[Actions\Action56]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"

[Actions\Action57]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"

[Actions\Action58]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"

[Actions\Action59]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"

[Actions\Action6]
ActionID=STRING|"A_REGEXP_MATCH"
Enabled=INTEGER|-1
Name=STRING|"RegExp reTime Match"
Params=FOLDER

[Actions\Action6\Params]
anchored=STRING|"0"
case=STRING|"1"
extended=STRING|"0"
line00000000=STRING|"{haystack}"
linecount=STRING|"1"
multiline=STRING|"0"
noautocapture=STRING|"0"
pattern=STRING|"\b([0-2]?[0-9]:[0-5])[0-9](\s?(pm|am|p|a)?)\b"
savesubexpression=STRING|"1"
singleline=STRING|"0"
subexpressionpos=STRING|"0"
subexpressionvar=STRING|"reTime"
ungreedy=STRING|"0"
useexternal=STRING|"0"
variable=STRING|"Found"

[Actions\Action60]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"

[Actions\Action61]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"

[Actions\Action62]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""Time: {reTime(0)} Date: {myDate}"""
Params=FOLDER

[Actions\Action62\Params]
icon=STRING|"1"
msg0=STRING|"Time: {reTime(0)} Date: {myDate}"
msg1=STRING|"===================="
msg2=STRING|"var reNumDate is {reNumDate(0)}"
msg3=STRING|"var reMonthDayDate is {reMonthDayDate(0)}"
msg4=STRING|"var reMonthDate is {reMonthDate(0)}"
msg5=STRING|"var reDayDate is {reDayDate(0)}"
msg6=STRING|"var re2weeks is {re2weeks(0)}"
msg7=STRING|"var reNextWeek is {reNextWeek(0)}"
msg8=STRING|"var reWeekday is {reWeekday(0)}"
msgcount=STRING|"9"
playsound=STRING|"0"
showmessage=STRING|"1"

[Actions\Action7]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If reTime is Empty  Then"
Params=FOLDER

[Actions\Action7\Params]
case=STRING|"0"
connection=STRING|"0"
count=STRING|"1"
operator=STRING|"0"
type=STRING|"0"
value1=STRING|"{reTime(0)}"

[Actions\Action8]
ActionID=STRING|"A_REGEXP_MATCH"
Enabled=INTEGER|-1
Name=STRING|"RegExp reTime Match"
Params=FOLDER

[Actions\Action8\Params]
anchored=STRING|"0"
case=STRING|"1"
extended=STRING|"0"
line00000000=STRING|"{haystack}"
linecount=STRING|"1"
multiline=STRING|"0"
noautocapture=STRING|"0"
pattern=STRING|"\b(before\s|after\s)school|noon|in the morning\b"
savesubexpression=STRING|"1"
singleline=STRING|"0"
subexpressionpos=STRING|"0"
subexpressionvar=STRING|"reTime"
ungreedy=STRING|"1"
useexternal=STRING|"0"
variable=STRING|"Found"

[Actions\Action9]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If reTime = ""Before school""  Then"
Params=FOLDER

[Actions\Action9\Params]
case=STRING|"0"
case#1=STRING|"0"
connection=STRING|"1"
count=STRING|"2"
operator=STRING|"0"
operator#1=STRING|"0"
type=STRING|"0"
type#1=STRING|"0"
value1=STRING|"{reTime(0)}"
value1#1=STRING|"{reTime(0)}"
value2=STRING|"before school"
value2#1=STRING|"in the morning"

[Events]
Event1=FOLDER

[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_GENERAL_HOTKEY"
Name=STRING|"Shift+Ctrl+Alt+C"
Params=FOLDER
UniqueID=INTEGER|-1344369448

[Events\Event1\Params]
hotkey=STRING|"57411"

Post Reply