AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SCRIPT REQUIRED FOR PRINTING

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
domex



Joined: 09 Mar 2010
Posts: 39

PostPosted: Tue Mar 09, 2010 9:27 am    Post subject: SCRIPT REQUIRED FOR PRINTING Reply with quote

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
View user's profile Send private message
Murx
Guest





PostPosted: Tue Mar 09, 2010 10:07 am    Post subject: Reply with quote

Quote:
SCRIPT REQUIRED FOR PRINTING
DON'T SHOUT AT THE FORUM!!!! Mad

Arrow http://www.autohotkey.com/forum/topic29885.html Question
Back to top
wooly_sammoth



Joined: 12 May 2009
Posts: 634
Location: Gloucester UK

PostPosted: Tue Mar 09, 2010 10:24 am    Post subject: Reply with quote

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.
Very Happy
Back to top
View user's profile Send private message Visit poster's website
TLM



Joined: 21 Aug 2006
Posts: 2926
Location: The Shell

PostPosted: Tue Mar 09, 2010 12:24 pm    Post subject: Reply with quote

You can also use the Print command with RunWait, %Comspec%.

Don't have time right now but will post an example later if no one else does.

hth
_________________
paradigm.shift:=(•_•)┌П┐RTFM||^.*∞
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group