#29241 - 2002-09-18 04:59 PM
Win9x printers
|
Clayton
Fresh Scripter
Registered: 2002-08-19
Posts: 29
Loc: Tampa, FL
|
Hey guys I'm figuring this stuff out slowly but surely. I have a question and I'm getting confused. I have mostly 98 machines (against my will) and I need to add a new network printer. I got my sendkeys done but I'm getting confused on having the script to check the machine to see if the printer is already installed. I'm just totally confused on how to do this. I've read many posts including the "add orinter on 9x clients!" but my head is still garbage. I know once I see what needs to be done I'll kick myslef in the rear. Thanks for any help.
if @inwin = 1 ? "......Please wait......" If ADDPRINTERCONNECTION ("\\tpaprime01\prt2315") = 0 ? "Added printer connection to \\tpaprime01\prt2315 ...." else ? "Error = @error" Endif else RUN "rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL AddPrinter" ? "Please Wait" sleep 1 sendkeys ("{ENTER}") sendkeys ("~N") sendkeys ("{ENTER}") sendkeys ("~P") sendkeys ("\\tpaprime01\prt2315") sendkeys ("~N") sendkeys ("{ENTER}") sleep 1 sendkeys ("~N") sendkeys ("{ENTER}") sendkeys ("~N") sendkeys ("{ENTER}") sleep 1 ? "Checking Printer..." endif
|
|
Top
|
|
|
|
#29247 - 2002-09-18 08:20 PM
Re: Win9x printers
|
Clayton
Fresh Scripter
Registered: 2002-08-19
Posts: 29
Loc: Tampa, FL
|
Sorry that asking a minor(minor/simple to you) question is such a bad thing. To answer your question I am a newbie and I searched the board before posting. The fact that I searched the board and read many responses is where I got/getting confused. I'm sorry it's so hard to get help. Maybe I should find some other place to ask for help since it appears that I'm below some people. Thanks sealeopard at least you responded without negativity.
|
|
Top
|
|
|
|
#29248 - 2002-09-18 08:55 PM
Re: Win9x printers
|
Sealeopard
KiX Master
   
Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
|
Clayton: I don't think the negativity was specifically targeted towards you. You did a good job figuring out that SENDKEYS has to be used under Windows 9x to install printers.
However, in general, there are a lot of posts that are unnecessary because 1) there is a FAQ about it, 2) there are already three posts about it, 3) the KiXtart BBS Search has not been used to located the articles in 2), 4) the KiXtart Manual (which comes in CHM, HTMl, DOC, and PDF flavors) has not been consulted 5) barely any information is provided in the question (a la "My car is broken. How do I fix it?")
So, it sometime is pretty frustrating to answer some posts.
_________________________
There are two types of vessels, submarines and targets.
|
|
Top
|
|
|
|
#29249 - 2002-09-18 08:57 PM
Re: Win9x printers
|
Clayton
Fresh Scripter
Registered: 2002-08-19
Posts: 29
Loc: Tampa, FL
|
[ 18. September 2002, 21:59: Message edited by: Clayton ]
|
|
Top
|
|
|
|
#29251 - 2002-09-18 10:40 PM
Re: Win9x printers
|
Clayton
Fresh Scripter
Registered: 2002-08-19
Posts: 29
Loc: Tampa, FL
|
No problem. We all get a bit frusterated. I was earlier and I apologize for my comments also.
Thanks...
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1110 anonymous users online.
|
|
|