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 

command to use non default printer

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



Joined: 18 Nov 2009
Posts: 11

PostPosted: Wed Feb 24, 2010 9:13 pm    Post subject: command to use non default printer Reply with quote

question-
How do I tell this script to use a printer other than the default?
Can I simply specify the non-default one or must I make the target printer default and then switch it back?
Any help is help to me. Thanks.


WatchDir = C:\Documents and Settings\KIP\Desktop\test


PrevFileList = `n
Loop, %WatchDir%\*.*
PrevFileList = %PrevFileList%%A_LoopFileName%`n


Loop
{
NewFileList = `n
Loop, %WatchDir%\*.*
{
NewFileList = %NewFileList%%A_LoopFileName%`n
IfNotInString, PrevFileList, %A_LoopFileName%
Run, print %WatchDir%\%A_LoopFileName%
Sleep, 3019
FileDelete, %WatchDir%\%A_LoopFileName%

}


PrevFileList = %NewFileList%

Sleep, 5000
}
Back to top
View user's profile Send private message
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Wed Feb 24, 2010 9:31 pm    Post subject: Reply with quote

Step 1) Click the search link at the top of this page
Step 2) type

change default printer

Step 3) hit the button

Result Arrow Shocked Very Happy Cool
_________________
AHK Wiki FAQ
TF : Text files & strings lib, TF Forum
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