File-monitor starts too early?

Discuss RoboTask here
Post Reply
snowseals
Posts: 59
Joined: Mon Apr 11, 2016 10:17 am

File-monitor starts too early?

Post by snowseals »

The File-monitor event starts sometimes before the action is done/ready.
I have this task that should monitor if there is a new specific file in this specific directory.
If it's there, then proceed.
If not, then wait for it.

But sometimes it just ignores the trigger and starts to save the file and runs the next task.
It actually hits Save in Word somehow, and then there is a new file in (not even in this same directory, but the directory I used last), called INHOUDSOPGAVE.docx
(which indicates it picks the 1st text in the document to name the file)
Since I use a Macro-function to save the file, it's named Taxatierapport SEK - blabla bla.docx when I manually hit a specific button.
After that, it should run and only react/trigger on that specific filename beginning with ''Taxatierapport". See File-monitor settings picture how I masked it.


When I close and kill Robotask and try again, it's acting normal/like it should/waiting for the file.

Since it's so irregular, I think it's a bug in the new algorithm of file-monitor?

Image

The 2 tasks I use:

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|0
Comment=STRINGLIST
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task18"
Hide=INTEGER|0
ID=INTEGER|724224594
LogOnAsUser=INTEGER|1
Name=STRING|"Downloaden Taxatie-overzicht + Nieuw rapport [FER-PC] (imported)"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
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
Action63=FOLDER
Action64=FOLDER
Action65=FOLDER
Action66=FOLDER
Action67=FOLDER
Action68=FOLDER
Action69=FOLDER
Action7=FOLDER
Action70=FOLDER
Action71=FOLDER
Action72=FOLDER
Action73=FOLDER
Action74=FOLDER
Action75=FOLDER
Action76=FOLDER
Action77=FOLDER
Action78=FOLDER
Action79=FOLDER
Action8=FOLDER
Action80=FOLDER
Action81=FOLDER
Action82=FOLDER
Action83=FOLDER
Action84=FOLDER
Action9=FOLDER

[Actions\Action1]
ActionID=STRING|"A_TASKS_DISABLE"
Enabled=INTEGER|-1
Name=STRING|"Disable Task ""Gaspedaal automatisch invullen [FER-PC] (imported)"""
Params=FOLDER

[Actions\Action1\Params]
taskid=STRING|"1883976446"

[Actions\Action10]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 500ms"
Params=FOLDER

[Actions\Action10\Params]
delay=STRING|"50"
dimension=STRING|"0"

[Actions\Action11]
ActionID=STRING|"A_MOUSE_MOVETO"
Enabled=INTEGER|-1
Name=STRING|"Move To Object"
Params=FOLDER

[Actions\Action11\Params]
bottom=STRING|"1040"
controlclass=STRING|"Chrome_RenderWidgetHostHWND"
controltext=STRING|"Chrome Legacy Window"
ctrltextexact=STRING|"1"
left=STRING|"0"
right=STRING|"1920"
top=STRING|"90"
windowclass=STRING|"Chrome_WidgetWin_1"
windowtext=STRING|"Results | Typeform - Google Chrome"
wintextexact=STRING|"0"
x=STRING|"1883"
y=STRING|"184"

[Actions\Action12]
ActionID=STRING|"A_MOUSE_CLICK"
Enabled=INTEGER|-1
Name=STRING|"Click button"
Params=FOLDER

[Actions\Action12\Params]
action=STRING|"0"
button=STRING|"0"

[Actions\Action13]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//End of MacroRecoder block"
Params=FOLDER

[Actions\Action13\Params]
comment=STRING|"End of MacroRecoder block"

[Actions\Action14]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//Begin van Wachten totdat Excel-bestand gedownload is (script van forum)"
Params=FOLDER

[Actions\Action14\Params]
comment=STRING|"Begin van Wachten totdat Excel-bestand gedownload is (script van forum)"

[Actions\Action15]
ActionID=STRING|"A_ROBOTASK_ALERT"
Enabled=INTEGER|-1
Name=STRING|"Show Notification"
Params=FOLDER

[Actions\Action15\Params]
defh=STRING|"1"
defw=STRING|"1"
duration=STRING|"3"
height=STRING|"76"
icon=STRING|"3"
kind=STRING|"1"
message=STRING|"Wachten totdat Excel-bestand gedownload is"
position=STRING|"3"
title=STRING|"14."
width=STRING|"330"

[Actions\Action16]
ActionID=STRING|"A_VARIABLES_CREATE"
Enabled=INTEGER|-1
Name=STRING|"Create local variable ""FILENAME"" with value ""C:\Users\Eigenaar\Downloads\Taxatie Overzicht Form..."""
Params=FOLDER

[Actions\Action16\Params]
expand=STRING|"0"
varkind=STRING|"1"
varname=STRING|"FILENAME"
varvalue=STRING|"C:\Users\Eigenaar\Downloads\Taxatie Overzicht Formulier-report.xlsx"

[Actions\Action17]
ActionID=STRING|"A_LOOP_SIMPLE"
Enabled=INTEGER|-1
Name=STRING|"Simple Loop"
Params=FOLDER

[Actions\Action17\Params]
begin=STRING|"1"
end=STRING|"60"

[Actions\Action18]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER

[Actions\Action18\Params]
case=STRING|"0"
connection=STRING|"0"
count=STRING|"1"
operator=STRING|"0"
type=STRING|"3"
value1=STRING|"{FileExists({filename})}"

[Actions\Action19]
ActionID=STRING|"A_LOOP_BREAK"
Enabled=INTEGER|-1
Name=STRING|"Break"

[Actions\Action2]
ActionID=STRING|"A_TASKS_START"
Enabled=INTEGER|-1
Name=STRING|"Start Task ""Turn off Capslock (imported)"""
Params=FOLDER

[Actions\Action2\Params]
parametercount=STRING|"0"
required=STRING|"0"
taskid=STRING|"2052485780"
wait=STRING|"1"

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

[Actions\Action21]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 1 sec"
Params=FOLDER

[Actions\Action21\Params]
delay=STRING|"1"
dimension=STRING|"1"

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

[Actions\Action23]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"

[Actions\Action24]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER

[Actions\Action24\Params]
case=STRING|"0"
connection=STRING|"0"
count=STRING|"1"
operator=STRING|"0"
type=STRING|"3"
value1=STRING|"{FileExists({filename})}"

[Actions\Action25]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|""
Params=FOLDER

[Actions\Action25\Params]
icon=STRING|"1"
msg0=STRING|"File {FileName} exists"
msgcount=STRING|"1"
playsound=STRING|"0"
showmessage=STRING|"0"

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

[Actions\Action27]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""File ""{FileName}"" doesn't exist"""
Params=FOLDER

[Actions\Action27\Params]
icon=STRING|"0"
msg0=STRING|"File ""{FileName}"" doesn't exist"
msg1=STRING|"Timeout is over"
msgcount=STRING|"2"
playsound=STRING|"0"
showmessage=STRING|"1"

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

[Actions\Action29]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//End of MacroRecoder block"
Params=FOLDER

[Actions\Action29\Params]
comment=STRING|"End of MacroRecoder block"

[Actions\Action3]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//Begin van Openen Chrome en wachten op Download-knop"
Params=FOLDER

[Actions\Action3\Params]
comment=STRING|"Begin van Openen Chrome en wachten op Download-knop"

[Actions\Action30]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//Begin van zodra Download voltooid is Chrome afsluiten"
Params=FOLDER

[Actions\Action30\Params]
comment=STRING|"Begin van zodra Download voltooid is Chrome afsluiten"

[Actions\Action31]
ActionID=STRING|"A_ROBOTASK_ALERT"
Enabled=INTEGER|-1
Name=STRING|"Show Notification"
Params=FOLDER

[Actions\Action31\Params]
defh=STRING|"1"
defw=STRING|"1"
duration=STRING|"3"
height=STRING|"76"
icon=STRING|"3"
kind=STRING|"1"
message=STRING|"zodra Download voltooid is Chrome afsluiten"
position=STRING|"3"
title=STRING|"30."
width=STRING|"330"

[Actions\Action32]
ActionID=STRING|"A_MOUSE_MOVETO"
Enabled=INTEGER|-1
Name=STRING|"Move To Object"
Params=FOLDER

[Actions\Action32\Params]
bottom=STRING|"0"
ctrlclassexact=STRING|"0"
ctrltextexact=STRING|"1"
left=STRING|"0"
right=STRING|"0"
top=STRING|"0"
winclassexact=STRING|"0"
windowclass=STRING|"Chrome_WidgetWin_1"
windowtext=STRING|"Results | Typeform - Google Chrome"
wintextexact=STRING|"0"
x=STRING|"613"
y=STRING|"0"

[Actions\Action33]
ActionID=STRING|"A_MOUSE_CLICK"
Enabled=INTEGER|-1
Name=STRING|"Click button"
Params=FOLDER

[Actions\Action33\Params]
action=STRING|"0"
button=STRING|"0"

[Actions\Action34]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 99ms"
Params=FOLDER

[Actions\Action34\Params]
delay=STRING|"50"
dimension=STRING|"0"

[Actions\Action35]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to current window"
Params=FOLDER

[Actions\Action35\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"0"
keylayout=STRING|"0"
keys=STRING|"%({F4})"
pause=STRING|"40"
release=STRING|"1"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"

[Actions\Action36]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//End of MacroRecoder block"
Params=FOLDER

[Actions\Action36\Params]
comment=STRING|"End of MacroRecoder block"

[Actions\Action37]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//Begin van Openen Word en Template openen"
Params=FOLDER

[Actions\Action37\Params]
comment=STRING|"Begin van Openen Word en Template openen"

[Actions\Action38]
ActionID=STRING|"A_ROBOTASK_ALERT"
Enabled=INTEGER|-1
Name=STRING|"Show Notification"
Params=FOLDER

[Actions\Action38\Params]
defh=STRING|"1"
defw=STRING|"1"
duration=STRING|"3"
height=STRING|"76"
icon=STRING|"3"
kind=STRING|"1"
message=STRING|"Openen Word en Template openen"
position=STRING|"3"
title=STRING|"37."
width=STRING|"330"

[Actions\Action39]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""WINWORD.EXE """
Params=FOLDER

[Actions\Action39\Params]
ifnonzero=STRING|"0"
program=STRING|"C:\Program Files\Microsoft Office\Office15\WINWORD.EXE"
runas=STRING|"2"
wait=STRING|"1"

[Actions\Action4]
ActionID=STRING|"A_ROBOTASK_ALERT"
Enabled=INTEGER|-1
Name=STRING|"Show Notification"
Params=FOLDER

[Actions\Action4\Params]
defh=STRING|"1"
defw=STRING|"1"
duration=STRING|"3"
height=STRING|"76"
icon=STRING|"3"
kind=STRING|"1"
message=STRING|"Openen Chrome en wachten op Download-knop"
position=STRING|"3"
title=STRING|"3."
width=STRING|"330"

[Actions\Action40]
ActionID=STRING|"A_SCR_WAITFORPIXELS"
Enabled=INTEGER|-1
Name=STRING|"Wait for Pixels (full screen)"
Params=FOLDER

[Actions\Action40\Params]
caption=STRING|"1"
class=STRING|"0"
classexact=STRING|"0"
color0000=STRING|"$009A572B"
comparemode=STRING|"0"
exact=STRING|"0"
findmode=STRING|"0"
infinity=STRING|"0"
pxcount=STRING|"1"
source=STRING|"1"
timeout=STRING|"60"
tolerance0000=STRING|"16"
x0000=STRING|"321"
y0000=STRING|"144"

[Actions\Action41]
ActionID=STRING|"A_MOUSE_MOVETO"
Enabled=INTEGER|-1
Name=STRING|"Move To Object"
Params=FOLDER

[Actions\Action41\Params]
bottom=STRING|"864"
controlclass=STRING|"NetUIHWND"
ctrlclassexact=STRING|"0"
ctrltextexact=STRING|"1"
left=STRING|"0"
right=STRING|"1440"
top=STRING|"0"
winclassexact=STRING|"0"
windowclass=STRING|"OpusApp"
windowtext=STRING|"Microsoft Word"
wintextexact=STRING|"0"
x=STRING|"358"
y=STRING|"231"

[Actions\Action42]
ActionID=STRING|"A_MOUSE_CLICK"
Enabled=INTEGER|-1
Name=STRING|"Click button"
Params=FOLDER

[Actions\Action42\Params]
action=STRING|"0"
button=STRING|"0"

[Actions\Action43]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 222ms"
Params=FOLDER

[Actions\Action43\Params]
delay=STRING|"222"
dimension=STRING|"0"

[Actions\Action44]
ActionID=STRING|"A_MOUSE_MOVETO"
Enabled=INTEGER|-1
Name=STRING|"Move To Object"
Params=FOLDER

[Actions\Action44\Params]
bottom=STRING|"864"
controlclass=STRING|"NetUIHWND"
ctrlclassexact=STRING|"0"
ctrltextexact=STRING|"1"
left=STRING|"0"
right=STRING|"1440"
top=STRING|"0"
winclassexact=STRING|"0"
windowclass=STRING|"OpusApp"
windowtext=STRING|"Microsoft Word"
wintextexact=STRING|"0"
x=STRING|"460"
y=STRING|"253"

[Actions\Action45]
ActionID=STRING|"A_MOUSE_CLICK"
Enabled=INTEGER|-1
Name=STRING|"Click button"
Params=FOLDER

[Actions\Action45\Params]
action=STRING|"0"
button=STRING|"0"

[Actions\Action46]
ActionID=STRING|"A_SCR_WAITFORPIXELS"
Enabled=INTEGER|-1
Name=STRING|"Wait for Pixels (full screen)"
Params=FOLDER

[Actions\Action46\Params]
caption=STRING|"1"
class=STRING|"0"
classexact=STRING|"0"
color0000=STRING|"$00FFFFFF"
comparemode=STRING|"0"
exact=STRING|"0"
findmode=STRING|"0"
infinity=STRING|"0"
pxcount=STRING|"1"
source=STRING|"1"
timeout=STRING|"60"
tolerance0000=STRING|"16"
x0000=STRING|"168"
y0000=STRING|"37"

[Actions\Action47]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//End of MacroRecoder block"
Params=FOLDER

[Actions\Action47\Params]
comment=STRING|"End of MacroRecoder block"

[Actions\Action48]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//Begin van Ribbon Bar selecteren (script van forum)"
Params=FOLDER

[Actions\Action48\Params]
comment=STRING|"//Begin van Ribbon Bar selecteren (script van forum)"

[Actions\Action49]
ActionID=STRING|"A_ROBOTASK_ALERT"
Enabled=INTEGER|-1
Name=STRING|"Show Notification"
Params=FOLDER

[Actions\Action49\Params]
defh=STRING|"1"
defw=STRING|"1"
duration=STRING|"3"
height=STRING|"76"
icon=STRING|"3"
kind=STRING|"1"
message=STRING|"Ribbon Bar selecteren"
position=STRING|"3"
title=STRING|"48."
width=STRING|"330"

[Actions\Action5]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""chrome.exe https://admin.typeform.com/form/1090432/analyze/#results"""
Params=FOLDER

[Actions\Action5\Params]
ifnonzero=STRING|"0"
params=STRING|"https://admin.typeform.com/form/1090432/analyze/#results"
program=STRING|"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
runas=STRING|"2"
wait=STRING|"1"

[Actions\Action50]
ActionID=STRING|"A_MOUSE_MOVETO"
Enabled=INTEGER|-1
Name=STRING|"Move To Object"
Params=FOLDER

[Actions\Action50\Params]
bottom=STRING|"142"
controlclass=STRING|"NetUIHWND"
ctrlclassexact=STRING|"0"
ctrltextexact=STRING|"1"
left=STRING|"0"
right=STRING|"1858"
top=STRING|"0"
winclassexact=STRING|"0"
windowclass=STRING|"OpusApp"
windowtext=STRING|"- Microsoft Word"
wintextexact=STRING|"0"
x=STRING|"145"
y=STRING|"42"

[Actions\Action51]
ActionID=STRING|"A_MOUSE_CLICK"
Enabled=INTEGER|-1
Name=STRING|"Click button"
Params=FOLDER

[Actions\Action51\Params]
action=STRING|"0"
button=STRING|"0"

[Actions\Action52]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 222ms"
Params=FOLDER

[Actions\Action52\Params]
delay=STRING|"222"
dimension=STRING|"0"

[Actions\Action53]
ActionID=STRING|"A_MOUSE_MOVETO"
Enabled=INTEGER|-1
Name=STRING|"Move To Object"
Params=FOLDER

[Actions\Action53\Params]
bottom=STRING|"142"
controlclass=STRING|"NetUIHWND"
ctrlclassexact=STRING|"0"
ctrltextexact=STRING|"1"
left=STRING|"0"
right=STRING|"1858"
top=STRING|"0"
winclassexact=STRING|"0"
windowclass=STRING|"OpusApp"
windowtext=STRING|"- Microsoft Word"
wintextexact=STRING|"0"
x=STRING|"145"
y=STRING|"40"

[Actions\Action54]
ActionID=STRING|"A_MOUSE_CLICK"
Enabled=INTEGER|-1
Name=STRING|"Click button"
Params=FOLDER

[Actions\Action54\Params]
action=STRING|"0"
button=STRING|"0"

[Actions\Action55]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 222ms"
Params=FOLDER

[Actions\Action55\Params]
delay=STRING|"222"
dimension=STRING|"0"

[Actions\Action56]
ActionID=STRING|"A_MOUSE_MOVETO"
Enabled=INTEGER|-1
Name=STRING|"Move To Object"
Params=FOLDER

[Actions\Action56\Params]
bottom=STRING|"142"
controlclass=STRING|"NetUIHWND"
ctrlclassexact=STRING|"0"
ctrltextexact=STRING|"1"
left=STRING|"0"
right=STRING|"1858"
top=STRING|"0"
winclassexact=STRING|"0"
windowclass=STRING|"OpusApp"
windowtext=STRING|"- Microsoft Word"
wintextexact=STRING|"0"
x=STRING|"24"
y=STRING|"80"

[Actions\Action57]
ActionID=STRING|"A_MOUSE_CLICK"
Enabled=INTEGER|-1
Name=STRING|"Click button"
Params=FOLDER

[Actions\Action57\Params]
action=STRING|"0"
button=STRING|"0"

[Actions\Action58]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//End of MacroRecoder block"
Params=FOLDER

[Actions\Action58\Params]
comment=STRING|"End of MacroRecoder block"

[Actions\Action59]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//Begin van afsluiten van Document 1 en Zoeken naar voertuig selecteren"
Params=FOLDER

[Actions\Action59\Params]
comment=STRING|"Begin van afsluiten van Document 1 en Zoeken naar voertuig selecteren"

[Actions\Action6]
ActionID=STRING|"A_SCR_WAITFORPIXELS"
Enabled=INTEGER|-1
Name=STRING|"Wait for Pixels (full screen)"
Params=FOLDER

[Actions\Action6\Params]
caption=STRING|"1"
class=STRING|"0"
classexact=STRING|"0"
color0000=STRING|"$00C6C58A"
comparemode=STRING|"0"
exact=STRING|"0"
findmode=STRING|"0"
infinity=STRING|"0"
pxcount=STRING|"1"
source=STRING|"1"
timeout=STRING|"60"
tolerance0000=STRING|"16"
x0000=STRING|"1892"
y0000=STRING|"236"

[Actions\Action60]
ActionID=STRING|"A_ROBOTASK_ALERT"
Enabled=INTEGER|-1
Name=STRING|"Show Notification"
Params=FOLDER

[Actions\Action60\Params]
defh=STRING|"1"
defw=STRING|"1"
duration=STRING|"3"
height=STRING|"76"
icon=STRING|"3"
kind=STRING|"1"
message=STRING|"afsluiten van Document1 en Zoeken naar voertuig selecteren"
position=STRING|"3"
title=STRING|"59."
width=STRING|"330"

[Actions\Action61]
ActionID=STRING|"A_MOUSE_MOVETO"
Enabled=INTEGER|-1
Name=STRING|"Move To Object"
Params=FOLDER

[Actions\Action61\Params]
bottom=STRING|"147"
controlclass=STRING|"NetUIHWND"
ctrlclassexact=STRING|"0"
ctrltextexact=STRING|"1"
left=STRING|"0"
right=STRING|"1440"
top=STRING|"0"
winclassexact=STRING|"0"
windowclass=STRING|"OpusApp"
windowtext=STRING|" - Microsoft Word"
wintextexact=STRING|"0"
x=STRING|"680"
y=STRING|"4"

[Actions\Action62]
ActionID=STRING|"A_MOUSE_CLICK"
Enabled=INTEGER|-1
Name=STRING|"Click button"
Params=FOLDER

[Actions\Action62\Params]
action=STRING|"0"
button=STRING|"0"

[Actions\Action63]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 500ms"
Params=FOLDER

[Actions\Action63\Params]
delay=STRING|"500"
dimension=STRING|"0"

[Actions\Action64]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to current window"
Params=FOLDER

[Actions\Action64\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"0"
keylayout=STRING|"0"
keys=STRING|"%({TAB})%({F4})%(y)y4"
pause=STRING|"40"
release=STRING|"1"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"

[Actions\Action65]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//End of MacroRecoder block"
Params=FOLDER

[Actions\Action65\Params]
comment=STRING|"End of MacroRecoder block"

[Actions\Action66]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Play sound"
Params=FOLDER

[Actions\Action66\Params]
icon=STRING|"1"
msg0=STRING|"[{Time}, {DayOfWeek}, {Date}]"
msg1=STRING|"Hey, awake!"
msgcount=STRING|"2"
playsound=STRING|"1"
showmessage=STRING|"0"
wavefile=STRING|"C:\Windows\Media\Savanna\Windows Notify.wav"

[Actions\Action67]
ActionID=STRING|"A_ROBOTASK_ALERT"
Enabled=INTEGER|-1
Name=STRING|"Show Notification"
Params=FOLDER

[Actions\Action67\Params]
defh=STRING|"1"
defw=STRING|"1"
duration=STRING|"2"
height=STRING|"76"
icon=STRING|"3"
kind=STRING|"0"
message=STRING|"Vul chassis-nr. in (laatste 4) en klik Voortzetten"
position=STRING|"2"
title=STRING|"66. Klaar!"
width=STRING|"330"

[Actions\Action68]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//Begin van wachten op Input en zodra Verwijderen-venster verschijnt op JA drukken"
Params=FOLDER

[Actions\Action68\Params]
comment=STRING|"Begin van wachten op Input en zodra Verwijderen-venster verschijnt op JA drukken"

[Actions\Action69]
ActionID=STRING|"A_ROBOTASK_ALERT"
Enabled=INTEGER|-1
Name=STRING|"Show Notification"
Params=FOLDER

[Actions\Action69\Params]
defh=STRING|"1"
defw=STRING|"1"
duration=STRING|"3"
height=STRING|"76"
icon=STRING|"3"
kind=STRING|"1"
message=STRING|"wachten op Input en zodra Verwijderen-venster verschijnt op JA drukken"
position=STRING|"3"
title=STRING|"68."
width=STRING|"330"

[Actions\Action7]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//Begin of MacroRecoder block"
Params=FOLDER

[Actions\Action7\Params]
comment=STRING|"Begin of MacroRecoder block"

[Actions\Action70]
ActionID=STRING|"A_SCR_WAITFORPIXELS"
Enabled=INTEGER|-1
Name=STRING|"Wait for Pixels (full screen)"
Params=FOLDER

[Actions\Action70\Params]
caption=STRING|"1"
class=STRING|"0"
classexact=STRING|"0"
color0000=STRING|"$00C0FFFF"
comparemode=STRING|"0"
exact=STRING|"0"
findmode=STRING|"0"
infinity=STRING|"1"
pxcount=STRING|"1"
source=STRING|"1"
timeout=STRING|"60"
tolerance0000=STRING|"16"
x0000=STRING|"1029"
y0000=STRING|"581"

[Actions\Action71]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay"
Params=FOLDER

[Actions\Action71\Params]
delay=STRING|"500"
dimension=STRING|"0"

[Actions\Action72]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to current window"
Params=FOLDER

[Actions\Action72\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"0"
keylayout=STRING|"0"
keys=STRING|"%(j)"
pause=STRING|"40"
release=STRING|"1"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"

[Actions\Action73]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 50 ms"
Params=FOLDER

[Actions\Action73\Params]
delay=STRING|"50"
dimension=STRING|"0"

[Actions\Action74]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//End of MacroRecoder block"
Params=FOLDER

[Actions\Action74\Params]
comment=STRING|"End of MacroRecoder block"

[Actions\Action75]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//Begin van Afdalen naar pagina met ''Datum opname"" en Merk + Model kopieren en plakken naar Gaspedaal"
Params=FOLDER

[Actions\Action75\Params]
comment=STRING|"Begin van Afdalen naar pagina met ''Datum opname"" en Merk + Model kopieren en plakken naar Gaspedaal"

[Actions\Action76]
ActionID=STRING|"A_ROBOTASK_ALERT"
Enabled=INTEGER|-1
Name=STRING|"Show Notification"
Params=FOLDER

[Actions\Action76\Params]
defh=STRING|"1"
defw=STRING|"1"
duration=STRING|"3"
height=STRING|"76"
icon=STRING|"3"
kind=STRING|"1"
message=STRING|"Afdalen naar pagina 1 Opnamegegevens"
position=STRING|"3"
title=STRING|"75."
width=STRING|"330"

[Actions\Action77]
ActionID=STRING|"A_MOUSE_MOVETO"
Enabled=INTEGER|-1
Name=STRING|"Move To Object"
Params=FOLDER

[Actions\Action77\Params]
bottom=STRING|"147"
controlclass=STRING|"NetUIHWND"
ctrlclassexact=STRING|"0"
ctrltextexact=STRING|"1"
left=STRING|"0"
right=STRING|"1440"
top=STRING|"0"
winclassexact=STRING|"0"
windowclass=STRING|"OpusApp"
windowtext=STRING|" - Microsoft Word"
wintextexact=STRING|"0"
x=STRING|"691"
y=STRING|"4"

[Actions\Action78]
ActionID=STRING|"A_MOUSE_CLICK"
Enabled=INTEGER|-1
Name=STRING|"Click button"
Params=FOLDER

[Actions\Action78\Params]
action=STRING|"0"
button=STRING|"0"

[Actions\Action79]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay"
Params=FOLDER

[Actions\Action79\Params]
delay=STRING|"99"
dimension=STRING|"0"

[Actions\Action8]
ActionID=STRING|"A_MOUSE_MOVETO"
Enabled=INTEGER|-1
Name=STRING|"Move To Object"
Params=FOLDER

[Actions\Action8\Params]
bottom=STRING|"1040"
controlclass=STRING|"Chrome_RenderWidgetHostHWND"
controltext=STRING|"Chrome Legacy Window"
ctrltextexact=STRING|"1"
left=STRING|"0"
right=STRING|"1920"
top=STRING|"90"
windowclass=STRING|"Chrome_WidgetWin_1"
windowtext=STRING|"Results | Typeform - Google Chrome"
wintextexact=STRING|"0"
x=STRING|"1891"
y=STRING|"140"

[Actions\Action80]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to current window"
Params=FOLDER

[Actions\Action80\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"0"
keylayout=STRING|"0"
keys=STRING|"""{PGDN}{PGDN}{PGDN}{UP}{UP}{UP}{UP}{UP}{UP}{UP}{UP}{UP}{UP}{UP}{HOME}{DELAY 500}"""
pause=STRING|"40"
release=STRING|"1"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"

[Actions\Action81]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Play sound"
Params=FOLDER

[Actions\Action81\Params]
icon=STRING|"1"
msg0=STRING|"[{Time}, {DayOfWeek}, {Date}]"
msg1=STRING|"Hey, awake!"
msgcount=STRING|"2"
playsound=STRING|"1"
showmessage=STRING|"0"
wavefile=STRING|"C:\Windows\Media\Savanna\Windows Notify.wav"

[Actions\Action82]
ActionID=STRING|"A_ROBOTASK_ALERT"
Enabled=INTEGER|-1
Name=STRING|"Show Notification"
Params=FOLDER

[Actions\Action82\Params]
defh=STRING|"1"
defw=STRING|"1"
duration=STRING|"5"
height=STRING|"76"
icon=STRING|"3"
kind=STRING|"0"
message=STRING|"Selecteer opdrachtgever en sla Rapport op"
position=STRING|"2"
title=STRING|"81. Klaar met download Taxatie + Nieuw rapport!"
width=STRING|"330"

[Actions\Action83]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//Begin van Wachten totdat Rapport opgeslagen is"
Params=FOLDER

[Actions\Action83\Params]
comment=STRING|"Begin van Wachten totdat Rapport opgeslagen is"

[Actions\Action84]
ActionID=STRING|"A_TASKS_ENABLE"
Enabled=INTEGER|-1
Name=STRING|"Enable Task ""Gaspedaal automatisch invullen"""
Params=FOLDER

[Actions\Action84\Params]
taskid=STRING|"1883976446"

[Actions\Action9]
ActionID=STRING|"A_MOUSE_CLICK"
Enabled=INTEGER|-1
Name=STRING|"Click button"
Params=FOLDER

[Actions\Action9\Params]
action=STRING|"0"
button=STRING|"0"
and

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|0
Comment=STRINGLIST
ContinueOnError=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task15"
Hide=INTEGER|0
ID=INTEGER|1883976446
LogOnAsUser=INTEGER|1
Name=STRING|"Gaspedaal automatisch invullen [FER-PC] (imported)"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
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
Action6=FOLDER
Action7=FOLDER
Action8=FOLDER
Action9=FOLDER

[Actions\Action1]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//Begin of MacroRecoder block"
Params=FOLDER

[Actions\Action1\Params]
comment=STRING|"Begin of MacroRecoder block"

[Actions\Action10]
ActionID=STRING|"A_SCR_WAITFORPIXELS"
Enabled=INTEGER|-1
Name=STRING|"Wait for Pixels (full screen)"
Params=FOLDER

[Actions\Action10\Params]
caption=STRING|"1"
class=STRING|"0"
classexact=STRING|"0"
color0000=STRING|"$00F8F8F8"
comparemode=STRING|"0"
exact=STRING|"0"
findmode=STRING|"0"
infinity=STRING|"1"
pxcount=STRING|"1"
source=STRING|"1"
timeout=STRING|"60"
tolerance0000=STRING|"0"
x0000=STRING|"291"
y0000=STRING|"540"

[Actions\Action11]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//End of MacroRecoder block"
Params=FOLDER

[Actions\Action11\Params]
comment=STRING|"End of MacroRecoder block"

[Actions\Action12]
ActionID=STRING|"A_ROBOTASK_ALERT"
Enabled=INTEGER|-1
Name=STRING|"Show Notification"
Params=FOLDER

[Actions\Action12\Params]
defh=STRING|"1"
defw=STRING|"1"
duration=STRING|"3"
height=STRING|"76"
icon=STRING|"3"
kind=STRING|"1"
message=STRING|"Gaspedaal-script wordt geopend en documentnaam geplakt"
position=STRING|"3"
title=STRING|"12."
width=STRING|"330"

[Actions\Action13]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""cmd.exe """
Params=FOLDER

[Actions\Action13\Params]
ifnonzero=STRING|"0"
program=STRING|"C:\Windows\System32\cmd.exe"
runas=STRING|"0"
wait=STRING|"1"
workdir=STRING|"C:\Users\Eigenaar\Documents\SEK Automotive Solutions\Dossiers"

[Actions\Action14]
ActionID=STRING|"A_SCR_WAITFORPIXELS"
Enabled=INTEGER|-1
Name=STRING|"Wait for Pixels (full screen)"
Params=FOLDER

[Actions\Action14\Params]
caption=STRING|"1"
class=STRING|"0"
classexact=STRING|"0"
color0000=STRING|"$00000000"
comparemode=STRING|"0"
exact=STRING|"0"
findmode=STRING|"0"
infinity=STRING|"1"
pxcount=STRING|"1"
source=STRING|"1"
timeout=STRING|"60"
tolerance0000=STRING|"0"
x0000=STRING|"658"
y0000=STRING|"337"

[Actions\Action15]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay"
Params=FOLDER

[Actions\Action15\Params]
delay=STRING|"50"
dimension=STRING|"0"

[Actions\Action16]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to current window"
Params=FOLDER

[Actions\Action16\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"0"
keylayout=STRING|"0"
keys=STRING|"""python gaspedaal.py +(')+('){LEFT}{DELAY 50}"""
pause=STRING|"40"
release=STRING|"1"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"

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

[Actions\Action17\Params]
comment=STRING|"Begin of MacroRecoder block"

[Actions\Action18]
ActionID=STRING|"A_MOUSE_MOVETO"
Enabled=INTEGER|-1
Name=STRING|"Move To Object"
Params=FOLDER

[Actions\Action18\Params]
bottom=STRING|"0"
ctrlclassexact=STRING|"0"
ctrltextexact=STRING|"0"
left=STRING|"0"
right=STRING|"0"
top=STRING|"0"
winclassexact=STRING|"0"
windowclass=STRING|"ConsoleWindowClass"
windowtext=STRING|"Administrator: C:\Windows\System32\cmd.exe"
wintextexact=STRING|"0"
x=STRING|"545"
y=STRING|"41"

[Actions\Action19]
ActionID=STRING|"A_MOUSE_CLICK"
Enabled=INTEGER|-1
Name=STRING|"Click button"
Params=FOLDER

[Actions\Action19\Params]
action=STRING|"0"
button=STRING|"1"

[Actions\Action2]
ActionID=STRING|"A_ROBOTASK_ALERT"
Enabled=INTEGER|-1
Name=STRING|"Show Notification"
Params=FOLDER

[Actions\Action2\Params]
defh=STRING|"1"
defw=STRING|"1"
duration=STRING|"3"
height=STRING|"76"
icon=STRING|"3"
kind=STRING|"1"
message=STRING|"Slaat bestand op en kopieert documentnaam"
position=STRING|"3"
title=STRING|"2."
width=STRING|"330"

[Actions\Action20]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay"
Params=FOLDER

[Actions\Action20\Params]
delay=STRING|"50"
dimension=STRING|"0"

[Actions\Action21]
ActionID=STRING|"A_MOUSE_MOVE"
Enabled=INTEGER|-1
Name=STRING|"Local Move"
Params=FOLDER

[Actions\Action21\Params]
dx=STRING|"30"
dy=STRING|"54"
mode=STRING|"1"

[Actions\Action22]
ActionID=STRING|"A_MOUSE_CLICK"
Enabled=INTEGER|-1
Name=STRING|"Click button"
Params=FOLDER

[Actions\Action22\Params]
action=STRING|"0"
button=STRING|"0"

[Actions\Action23]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay"
Params=FOLDER

[Actions\Action23\Params]
delay=STRING|"50"
dimension=STRING|"0"

[Actions\Action24]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to current window"
Params=FOLDER

[Actions\Action24\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"0"
keylayout=STRING|"0"
keys=STRING|".docx"
pause=STRING|"40"
release=STRING|"1"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"

[Actions\Action25]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to active window"
Params=FOLDER

[Actions\Action25\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"0"
keylayout=STRING|"0"
keys=STRING|"{ENTER}"
pause=STRING|"40"
release=STRING|"1"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"

[Actions\Action26]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//End of MacroRecoder block"
Params=FOLDER

[Actions\Action26\Params]
comment=STRING|"End of MacroRecoder block"

[Actions\Action27]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//Begin of MacroRecoder block"
Params=FOLDER

[Actions\Action27\Params]
comment=STRING|"Begin of MacroRecoder block"

[Actions\Action28]
ActionID=STRING|"A_ROBOTASK_ALERT"
Enabled=INTEGER|-1
Name=STRING|"Show Notification"
Params=FOLDER

[Actions\Action28\Params]
defh=STRING|"1"
defw=STRING|"1"
duration=STRING|"5"
height=STRING|"76"
icon=STRING|"3"
kind=STRING|"1"
message=STRING|"Wachtend op Cookie Akkoord"
position=STRING|"3"
title=STRING|"28."
width=STRING|"330"

[Actions\Action29]
ActionID=STRING|"A_SCR_WAITFORPIXELS"
Enabled=INTEGER|-1
Name=STRING|"Wait for Pixels (full screen)"
Params=FOLDER

[Actions\Action29\Params]
caption=STRING|"1"
class=STRING|"0"
classexact=STRING|"0"
color0000=STRING|"$00007D00"
comparemode=STRING|"0"
exact=STRING|"0"
findmode=STRING|"0"
infinity=STRING|"1"
pxcount=STRING|"1"
source=STRING|"1"
timeout=STRING|"60"
tolerance0000=STRING|"0"
x0000=STRING|"1032"
y0000=STRING|"598"

[Actions\Action3]
ActionID=STRING|"A_MOUSE_MOVETO"
Enabled=INTEGER|-1
Name=STRING|"Move To Object"
Params=FOLDER

[Actions\Action3\Params]
bottom=STRING|"147"
controlclass=STRING|"NetUIHWND"
ctrlclassexact=STRING|"0"
ctrltextexact=STRING|"1"
left=STRING|"0"
right=STRING|"1920"
top=STRING|"0"
winclassexact=STRING|"0"
windowclass=STRING|"OpusApp"
windowtext=STRING|" - Microsoft Word"
wintextexact=STRING|"0"
x=STRING|"819"
y=STRING|"4"

[Actions\Action30]
ActionID=STRING|"A_ROBOTASK_ALERT"
Enabled=INTEGER|-1
Name=STRING|"Show Notification"
Params=FOLDER

[Actions\Action30\Params]
defh=STRING|"1"
defw=STRING|"1"
duration=STRING|"5"
height=STRING|"76"
icon=STRING|"3"
kind=STRING|"1"
message=STRING|"Wachtend op volledige URL"
position=STRING|"3"
title=STRING|"17."
width=STRING|"330"

[Actions\Action31]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay"
Params=FOLDER

[Actions\Action31\Params]
delay=STRING|"2"
dimension=STRING|"1"

[Actions\Action32]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//Begin of MacroRecoder block"
Params=FOLDER

[Actions\Action32\Params]
comment=STRING|"Begin of MacroRecoder block"

[Actions\Action33]
ActionID=STRING|"A_SCR_WAITFORPIXELS"
Enabled=INTEGER|-1
Name=STRING|"Wait for Pixels (full screen)"
Params=FOLDER

[Actions\Action33\Params]
caption=STRING|"1"
class=STRING|"0"
classexact=STRING|"0"
color0000=STRING|"$00B78B97"
comparemode=STRING|"0"
exact=STRING|"0"
findmode=STRING|"0"
infinity=STRING|"1"
pxcount=STRING|"1"
source=STRING|"1"
timeout=STRING|"60"
tolerance0000=STRING|"1"
x0000=STRING|"234"
y0000=STRING|"47"

[Actions\Action34]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//Begin of MacroRecoder block"
Params=FOLDER

[Actions\Action34\Params]
comment=STRING|"Begin of MacroRecoder block"

[Actions\Action35]
ActionID=STRING|"A_MOUSE_MOVETO"
Enabled=INTEGER|-1
Name=STRING|"Move To Object"
Params=FOLDER

[Actions\Action35\Params]
bottom=STRING|"0"
ctrlclassexact=STRING|"0"
ctrltextexact=STRING|"1"
left=STRING|"0"
right=STRING|"0"
top=STRING|"0"
winclassexact=STRING|"0"
windowclass=STRING|"Chrome_WidgetWin_1"
windowtext=STRING|" - Google Chrome"
wintextexact=STRING|"0"
x=STRING|"824"
y=STRING|"48"

[Actions\Action36]
ActionID=STRING|"A_MOUSE_CLICK"
Enabled=INTEGER|-1
Name=STRING|"Click button"
Params=FOLDER

[Actions\Action36\Params]
action=STRING|"0"
button=STRING|"0"

[Actions\Action37]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//End of MacroRecoder block"
Params=FOLDER

[Actions\Action37\Params]
comment=STRING|"End of MacroRecoder block"

[Actions\Action38]
ActionID=STRING|"A_SCR_WAITFORPIXELS"
Enabled=INTEGER|-1
Name=STRING|"Wait for Pixels (full screen)"
Params=FOLDER

[Actions\Action38\Params]
caption=STRING|"1"
class=STRING|"0"
classexact=STRING|"0"
color0000=STRING|"$009B5E0F"
comparemode=STRING|"0"
exact=STRING|"0"
findmode=STRING|"0"
infinity=STRING|"1"
pxcount=STRING|"1"
source=STRING|"1"
timeout=STRING|"60"
tolerance0000=STRING|"1"
x0000=STRING|"240"
y0000=STRING|"206"

[Actions\Action39]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay"
Params=FOLDER

[Actions\Action39\Params]
delay=STRING|"50"
dimension=STRING|"0"

[Actions\Action4]
ActionID=STRING|"A_MOUSE_CLICK"
Enabled=INTEGER|-1
Name=STRING|"Click button"
Params=FOLDER

[Actions\Action4\Params]
action=STRING|"0"
button=STRING|"0"

[Actions\Action40]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to current window"
Params=FOLDER

[Actions\Action40\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"0"
keylayout=STRING|"0"
keys=STRING|"^(c)"
pause=STRING|"40"
release=STRING|"1"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"

[Actions\Action41]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to current window"
Params=FOLDER

[Actions\Action41\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"0"
keylayout=STRING|"0"
keys=STRING|"%({F4})"
pause=STRING|"40"
release=STRING|"1"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"

[Actions\Action42]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//End of MacroRecoder block"
Params=FOLDER

[Actions\Action42\Params]
comment=STRING|"End of MacroRecoder block"

[Actions\Action43]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//Begin of MacroRecoder block"
Params=FOLDER

[Actions\Action43\Params]
comment=STRING|"Begin of MacroRecoder block"

[Actions\Action44]
ActionID=STRING|"A_MOUSE_MOVETO"
Enabled=INTEGER|-1
Name=STRING|"Move To Object"
Params=FOLDER

[Actions\Action44\Params]
bottom=STRING|"0"
ctrlclassexact=STRING|"0"
ctrltextexact=STRING|"0"
left=STRING|"0"
right=STRING|"0"
top=STRING|"0"
winclassexact=STRING|"0"
windowclass=STRING|"ConsoleWindowClass"
windowtext=STRING|"Administrator: C:\Windows\System32\cmd.exe"
wintextexact=STRING|"0"
x=STRING|"644"
y=STRING|"-14"

[Actions\Action45]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 50 ms"
Params=FOLDER

[Actions\Action45\Params]
delay=STRING|"50"
dimension=STRING|"0"

[Actions\Action46]
ActionID=STRING|"A_MOUSE_CLICK"
Enabled=INTEGER|-1
Name=STRING|"Click button"
Params=FOLDER

[Actions\Action46\Params]
action=STRING|"0"
button=STRING|"0"

[Actions\Action47]
ActionID=STRING|"A_MISC_COMMENT"
Enabled=INTEGER|-1
Name=STRING|"//End of MacroRecoder block"
Params=FOLDER

[Actions\Action47\Params]
comment=STRING|"End of MacroRecoder block"

[Actions\Action48]
ActionID=STRING|"A_ROBOTASK_ALERT"
Enabled=INTEGER|-1
Name=STRING|"Show Notification"
Params=FOLDER

[Actions\Action48\Params]
defh=STRING|"1"
defw=STRING|"1"
duration=STRING|"5"
height=STRING|"76"
icon=STRING|"3"
kind=STRING|"1"
message=STRING|"Google Chrome wordt geopend met URL"
position=STRING|"3"
title=STRING|"48."
width=STRING|"330"

[Actions\Action49]
ActionID=STRING|"A_GENERAL_RUN_PROG"
Enabled=INTEGER|-1
Name=STRING|"Run ""chrome.exe {ClipBoardContent}"""
Params=FOLDER

[Actions\Action49\Params]
ifnonzero=STRING|"0"
params=STRING|"{ClipBoardContent}"
program=STRING|"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
runas=STRING|"2"
wait=STRING|"1"

[Actions\Action5]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay"
Params=FOLDER

[Actions\Action5\Params]
delay=STRING|"500"
dimension=STRING|"0"

[Actions\Action50]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Play sound"
Params=FOLDER

[Actions\Action50\Params]
icon=STRING|"1"
msg0=STRING|"[{Time}, {DayOfWeek}, {Date}]"
msg1=STRING|"Hey, awake!"
msgcount=STRING|"2"
playsound=STRING|"1"
showmessage=STRING|"0"
wavefile=STRING|"C:\Windows\Media\Savanna\Windows Notify.wav"

[Actions\Action51]
ActionID=STRING|"A_ROBOTASK_ALERT"
Enabled=INTEGER|-1
Name=STRING|"Show Notification"
Params=FOLDER

[Actions\Action51\Params]
defh=STRING|"1"
defw=STRING|"1"
duration=STRING|"5"
height=STRING|"76"
icon=STRING|"3"
kind=STRING|"0"
message=STRING|"Wijzig evt. Gaspedaal-opties en Ga verder met Gaspedaal invoegen"
position=STRING|"2"
title=STRING|"51. Klaar met Gaspedaal automatisch invullen!"
width=STRING|"330"

[Actions\Action6]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to current window"
Params=FOLDER

[Actions\Action6\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"0"
keylayout=STRING|"0"
keys=STRING|"""%(b){DELAY 50}a{DELAY 50}1"""
pause=STRING|"40"
release=STRING|"1"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"

[Actions\Action7]
ActionID=STRING|"A_SCR_WAITFORPIXELS"
Enabled=INTEGER|-1
Name=STRING|"Wait for Pixels (full screen)"
Params=FOLDER

[Actions\Action7\Params]
caption=STRING|"1"
class=STRING|"0"
classexact=STRING|"0"
color0000=STRING|"$00F0F0F0"
comparemode=STRING|"0"
exact=STRING|"0"
findmode=STRING|"0"
infinity=STRING|"1"
pxcount=STRING|"1"
source=STRING|"1"
timeout=STRING|"60"
tolerance0000=STRING|"0"
x0000=STRING|"282"
y0000=STRING|"447"

[Actions\Action8]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to active window"
Params=FOLDER

[Actions\Action8\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"0"
keylayout=STRING|"0"
keys=STRING|"""{DELAY 50}^(c){DELAY 50}"""
pause=STRING|"40"
release=STRING|"1"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"

[Actions\Action9]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to active window"
Params=FOLDER

[Actions\Action9\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"0"
keylayout=STRING|"0"
keys=STRING|"{ENTER}"
pause=STRING|"40"
release=STRING|"1"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"

[Events]
Event1=FOLDER

[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_FILE_MONITOR"
Params=FOLDER
UnigueID=INTEGER|812738192

[Events\Event1\Params]
chg=STRING|"0"
chga=STRING|"1"
chgsl=STRING|"1"
chgsm=STRING|"1"
chgtl=STRING|"1"
chgtm=STRING|"1"
del=STRING|"0"
folder1=STRING|"C:\Users\Eigenaar\Documents\SEK Automotive Solutions\Dossiers"
foldercount=STRING|"1"
incmask=STRING|"Taxatierapport*.docx"
interval=STRING|"2"
listmode=STRING|"1"
mon_files=STRING|"1"
mon_folders=STRING|"0"
new=STRING|"1"
pass=STRING|"0"
passmode=STRING|"1"
saveresults=STRING|"0"
subfolders1=STRING|"0"
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: File-monitor starts too early?

Post by Oleg »

But sometimes it just ignores the trigger and starts to save the file and runs the next task.
How??
This means that there is the cause of starting the task.

maybe some other file appears in the folder with specified mask (Taxatierapport*.docx).
Pay attention that MS Word™ creates temporary file in the folder with similar name and the same extension

I checked the trigger, it works correctly.
We have changed the algorithm of task start. Now it uses "required start"
This means:
if the trigger see the hot changes in the folder, BUT it can't start the task because it is already running, it waits when the task will be finished and start the task again.
Oleg Yershov
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: File-monitor starts too early?

Post by Oleg »

I can't analyse algorithms of your tasks in details...
Oleg Yershov
snowseals
Posts: 59
Joined: Mon Apr 11, 2016 10:17 am

Re: File-monitor starts too early?

Post by snowseals »

Found the issue...

In the task after this, I disable the File Monitoring using a Robotask, cause I sometimes copy/paste those files made on a different computer, in this same location.
Then it wants to start the task, cause it detects a new file (with specific prefix-name).

But by doing so (disabling), the next time I run the script from the beginning, where I enable the File Monitoring again, it automatically detects those new pasted files,
and therefor goes further with the script.

Any idea how to approach this?
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: File-monitor starts too early?

Post by Oleg »

File monitor saves the status of monitored files and folders to file when you stop File Monitor (disable task).
When you start it again (enable task) it detects all changes in the folder immediately.
Oleg Yershov
Post Reply