Sign in to follow this  
Followers 0
vietrung

Help me Send command!

4 posts in this topic

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!!!

Share this post


Link to post
Share on other sites



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!!!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0