Hi there!
I am attempting to use Robotask to automatically print some jpg files. I have gotten as far as getting Robotask to search the appropriate folder, find the image and then print it, but I am now being hit with the printer dialog box where I have to manually click "Print". I have attempted to create a macro that clicks that print button for me, but unfortunately, it tries to do it at the same time as the image is printed and as a result, is about two or three seconds fast.
Is there a way to print my images without the dialog box, or perhaps is there way to create a delay between one action and the next?
Thanks alot for your help!
Printing jpg without dialog box?
Re: Printing jpg without dialog box?
RoboTask doesn't print documents directly.
Print document action uses default application for this kind of document.
If you get some additional dialog box you can send Enter key to this dialog.
Do something like this (see example below):
Print document action uses default application for this kind of document.
If you get some additional dialog box you can send Enter key to this dialog.
Do something like this (see example below):
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1416408852
Comment=STRINGLIST
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task121"
Hide=INTEGER|0
ID=INTEGER|968559461
LogOnAsUser=INTEGER|1
Name=STRING|"test print"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER
Action5=FOLDER
[Actions\Action1]
ActionID=STRING|"A_GENERAL_PRINTDOC"
Enabled=INTEGER|-1
Name=STRING|"Print DSC_0930.jpg"
Params=FOLDER
[Actions\Action1\Params]
files=STRING|"C:\photos\small\DSC_0930.jpg"
printer=STRING|"\\Server\EPSON-Color"
printto=STRING|"0"
[Actions\Action2]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 1 sec"
Params=FOLDER
[Actions\Action2\Params]
delay=STRING|"1"
dimension=STRING|"1"
[Actions\Action3]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to ""Print Pictures"""
Params=FOLDER
[Actions\Action3\Params]
currentwindow=STRING|"0"
fixedwindow=STRING|"0"
keylayout=STRING|"0"
keys=STRING|"{enter}"
pause=STRING|"20"
release=STRING|"0"
sendkind=STRING|"0"
wincaption=STRING|"Print Pictures"
[Actions\Action4]
ActionID=STRING|"A_GENERAL_PAUSE"
Enabled=INTEGER|-1
Name=STRING|"Delay 2 sec"
Params=FOLDER
[Actions\Action4\Params]
delay=STRING|"2"
dimension=STRING|"1"
[Actions\Action5]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""Printed"""
Params=FOLDER
[Actions\Action5\Params]
icon=STRING|"1"
msg0=STRING|"Printed"
msgcount=STRING|"1"
playsound=STRING|"0"
showmessage=STRING|"1"
Oleg Yershov