vietrung Posted June 20, 2007 Posted June 20, 2007 I want to map printer and connect automatic: DriveMapDel("LPT1:") DriveMapAdd("LPT1:","\\192.168.12.13\hp2420",1,"administrator","xltt123") #include <Process.au3> _RunDOS("start \\192.168.12.13\hp2420") WinWaitActive("Connect to Printer","&Yes") Send("!y") But when I run,it pause of windows "Connect to Printer" and don't auto send "YES" Please help me!!! Thanks!!!
vietrung Posted June 20, 2007 Author Posted June 20, 2007 I want to map printer and connect automatic:DriveMapDel("LPT1:")DriveMapAdd("LPT1:","\\192.168.12.13\hp2420",1,"administrator","xltt123")#include <Process.au3>_RunDOS("start \\192.168.12.13\hp2420")WinWaitActive("Connect to Printer","&Yes")Send("!y")But when I run,it pause of windows "Connect to Printer" and don't auto send "YES"Please help me!!! Thanks!!!WHY MOVED ME!!!
Xenobiologist Posted June 20, 2007 Posted June 20, 2007 Hi, try using Autoit Window Info and then use ControlSend instead of Send So long, Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times
jdumont Posted June 20, 2007 Posted June 20, 2007 Can't you just have a batch file and use the NET USE LPT1: \\SERVER\PRINTER /PERSISTENT:YES When starting my dos program I insert this to print across the network net use lpt1: \\server\shared_printer /delete net use lpt1: \\server\shared_printer /persistent:yes run program
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now