I have written a simpel task to print new documents automatically; pls see it below.
now it appears that the Adobe dialog screen is opened to show the document, and it closes again, and the file is deleted; but there is no print..
but When I put it back from the dustbin it prints (automatically)!
Do you see any error while it will not print in the first stage?
thanks!
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|"Task4"
Hide=INTEGER|0
ID=INTEGER|1404434663
LogOnAsUser=INTEGER|1
Name=STRING|"S04 Printen MY PARCEL labels"
OnErrorTaskID=INTEGER|0
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action10=FOLDER
Action11=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
Action6=FOLDER
Action7=FOLDER
Action8=FOLDER
Action9=FOLDER
[Actions\Action1]
ActionID=STRING|"A_GENERAL_PRINTDOC"
Enabled=INTEGER|0
Name=STRING|"Print pakbon*.pdf"
Params=FOLDER
[Actions\Action1\Params]
files=STRING|"C:\Users\beheer\Downloads\pakbon*.pdf"
printer=STRING|"HP LaserJet 500 color M551 PCL6"
printto=STRING|"1"
[Actions\Action10]
ActionID=STRING|"A_WINDOW_COMMAND"
Enabled=INTEGER|-1
Name=STRING|"Close window ""Adobe Reader"""
Params=FOLDER
[Actions\Action10\Params]
action=STRING|"4"
caption=STRING|"1"
child=STRING|"0"
class=STRING|"0"
classexact=STRING|"0"
exact=STRING|"0"
findmode=STRING|"0"
hidden=STRING|"0"
processall=STRING|"0"
wincaption=STRING|"Adobe Reader"
[Actions\Action11]
ActionID=STRING|"A_FILE_DELETE"
Enabled=INTEGER|-1
Name=STRING|"Delete File"
Params=FOLDER
[Actions\Action11\Params]
Count=STRING|"5"
deletedirs=STRING|"0"
file0=STRING|"C:\Users\beheer\Downloads\myparcel-label*.pdf"
file1=STRING|"C:\Users\beheer\Downloads\pakbon*.pdf"
file2=STRING|"C:\Users\beheer\Downloads\packingslip*.pdf"
file3=STRING|"C:\Users\beheer\Downloads\invoice*.pdf"
file4=STRING|"C:\Users\beheer\Downloads\MyParcel*.pdf"
hidden=STRING|"1"
subdir=STRING|"0"
system=STRING|"1"
ToRecycleBin=STRING|"1"
[Actions\Action2]
ActionID=STRING|"A_WINDOW_COMMAND"
Enabled=INTEGER|0
Name=STRING|"Close window ""Adobe Reader"""
Params=FOLDER
[Actions\Action2\Params]
action=STRING|"4"
caption=STRING|"1"
child=STRING|"0"
class=STRING|"0"
classexact=STRING|"0"
exact=STRING|"0"
findmode=STRING|"0"
hidden=STRING|"0"
processall=STRING|"0"
wincaption=STRING|"Adobe Reader"
[Actions\Action3]
ActionID=STRING|"A_GENERAL_PRINTDOC"
Enabled=INTEGER|0
Name=STRING|"Print invoice*.pdf"
Params=FOLDER
[Actions\Action3\Params]
files=STRING|"C:\Users\beheer\Downloads\invoice*.pdf"
printer=STRING|"HP LaserJet 500 color M551 PCL6"
printto=STRING|"1"
[Actions\Action4]
ActionID=STRING|"A_WINDOW_COMMAND"
Enabled=INTEGER|0
Name=STRING|"Close window ""Adobe Reader"""
Params=FOLDER
[Actions\Action4\Params]
action=STRING|"4"
caption=STRING|"1"
child=STRING|"0"
class=STRING|"0"
classexact=STRING|"0"
exact=STRING|"0"
findmode=STRING|"0"
hidden=STRING|"0"
processall=STRING|"0"
wincaption=STRING|"Adobe Reader"
[Actions\Action5]
ActionID=STRING|"A_GENERAL_PRINTDOC"
Enabled=INTEGER|0
Name=STRING|"Print packingslip*.pdf"
Params=FOLDER
[Actions\Action5\Params]
files=STRING|"C:\Users\beheer\Downloads\packingslip*.pdf"
printer=STRING|"HP LaserJet 500 color M551 PCL6"
printto=STRING|"1"
[Actions\Action6]
ActionID=STRING|"A_WINDOW_COMMAND"
Enabled=INTEGER|0
Name=STRING|"Close window ""Adobe Reader"""
Params=FOLDER
[Actions\Action6\Params]
action=STRING|"4"
caption=STRING|"1"
child=STRING|"0"
class=STRING|"0"
classexact=STRING|"0"
exact=STRING|"0"
findmode=STRING|"0"
hidden=STRING|"0"
processall=STRING|"0"
wincaption=STRING|"Adobe Reader"
[Actions\Action7]
ActionID=STRING|"A_GENERAL_PRINTDOC"
Enabled=INTEGER|-1
Name=STRING|"Print 2 files"
Params=FOLDER
[Actions\Action7\Params]
files=STRING|"C:\Users\beheer\Downloads\myparcel-label.pdf,""C:\Users\beheer\Downloads\MyParcel Shipping Labels*.pdf"""
printer=STRING|"ZDesigner GK420d (Kopie 1)"
printto=STRING|"1"
[Actions\Action8]
ActionID=STRING|"A_WINDOW_COMMAND"
Enabled=INTEGER|0
Name=STRING|"Close window ""Adobe Reader"""
Params=FOLDER
[Actions\Action8\Params]
action=STRING|"4"
caption=STRING|"1"
child=STRING|"0"
class=STRING|"0"
classexact=STRING|"0"
exact=STRING|"0"
findmode=STRING|"0"
hidden=STRING|"0"
processall=STRING|"0"
wincaption=STRING|"Adobe Reader"
[Actions\Action9]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 2000 ms"
Params=FOLDER
[Actions\Action9\Params]
delay=STRING|"20"
[Events]
Event1=FOLDER
[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_FILE_MONITOR"
Params=FOLDER
UnigueID=INTEGER|16446209
[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\beheer\Downloads\"
foldercount=STRING|"1"
incmask=STRING|"myparcel*.pdf"
interval=STRING|"3"
listmode=STRING|"1"
mon_files=STRING|"1"
mon_folders=STRING|"1"
new=STRING|"1"
pass=STRING|"0"
passmode=STRING|"1"
saveresults=STRING|"0"
subfolders1=STRING|"0"