| View previous topic :: View next topic |
| Author |
Message |
domex
Joined: 09 Mar 2010 Posts: 39
|
Posted: Tue Mar 09, 2010 9:27 am Post subject: SCRIPT REQUIRED FOR PRINTING |
|
|
Hi,
I need to print 1000 (pdf for tif) files per day and it takes very long time to right click and print or open file and print.
Files for printing may be in my local disk or network path (\\comp1\print).
Is there any way to do this with the help of AutoHotKey.
Many Thanks in Advance.
Ranjith |
|
| Back to top |
|
 |
Murx Guest
|
|
| Back to top |
|
 |
wooly_sammoth
Joined: 12 May 2009 Posts: 634 Location: Gloucester UK
|
Posted: Tue Mar 09, 2010 10:24 am Post subject: |
|
|
a simple loop should sort it for you
| Code: |
SetTitleMatchMode, 2
FileSelectFolder, Folder, , , Please choose the folder to loop through
Loop, %Folder%\*.pdf
{
Run, %A_LoopFileFullPath%
WinWait, Adobe Acrobat ;<---Change this to the name of the window that you see using the AutoIt Windows Spy
Send, ^p
Sleep, 1000
WinClose, Adobe Acrobat
}
|
I can't promise that this will work straight off as it makes several assumptions about your system such as the name of the window which will be opened and the Ctrl+p hotkey to print.
Also this way will still take a long time but at least you could go and get a coffee while it's working.
Hopefully this will give you some pointers in the right direction to make a slick script which will work with your system.
 |
|
| Back to top |
|
 |
TLM
Joined: 21 Aug 2006 Posts: 2926 Location: The Shell
|
|
| Back to top |
|
 |
|