
SendKey V1.1
============
(c) Niko Berger, 1999, (NP Software) http://np.dhs.org

Purpose:
--------

   This program is a help for all those system administrators out there
   who want to create batch files that are a little more powerfull. 
   You can automate installations.

   Check our homepage (http://np.dhs.org/) for updates and further comments.
   If you have any questions or suggestions mail me under niko_b@email.com.

System Requirements:
--------------------

   The program has been tested with Win9x, WinNT 4 (any servicepack).
   I am pretty sure it will also work under Win2000, but I couldn't test
   it yet.

Usage:
------

    SendKey [* ms][%% window][@ cmd param][#X][what]
	
 # ... Send single key X .. how often (also special VK_...)
 what... Send string
 * ms... wait for ms Milliseconds
 %% window... wait til a window with that caption appears
 @ cmd apram... execute program (also http, ... using shellexecute)

Special keys:
-------------

   With the # parameter you can send special keys. Supported keys are:
      VK_RETURN
      VK_SPACE
      VK_LEFT
      VK_RIGHT
      VK_UP
      VK_DOWN
      VK_TAB
      VK_ESCAPE

   Everything is case insensitve!

Example:
--------

   Copy the following text into a batch file and start it. This will only work
   in english version of Win9x. But it shows how easy it is to automate a process.
   In this example the Network Panel is being opened, and the computer name is being 
   changed. 

   After it is done, just click on cancel, so no changes on the system are being made.
   While the batch is running, dont touch the keyboard or click with the mouse, this 
   would screw everything up.

   Since you cant just call rundll32 by batch, you have to use the @ parameter. you can 
   try it without, i assure you it wont work.

netchange.bat
---------------------- copy from here -------------------
@echo off

REM Open network control panel
Sendkey @ C:\WINDOWS\rundll32.exe shell32.dll,Control_RunDLL c:\windows\system\netcpl.cpl

rem Wait until its open (the panel has the caption 'Network')
Sendkey %% Net

rem Wait another second, just to make sure its really open
Sendkey * 1000

rem Move the selection to the top tabs
Sendkey #6VK_TAB

rem once right - Identification
Sendkey #1VK_RIGHT

rem go down to the Computer description field
sendkey #3VK_TAB

rem Insert a description
sendkey This is a test!

REM done
------------------------- done ----------------------


License:
--------

   This program is freeware, meaning that you can use it without paying a dime.
   You may distribute this software freely, in its original archive file, as 
   long as you don't sell this software.


Warranty:
---------

   This software is supplied as is without any warranty.
   Although this program has no malicious or possibly harmful code, 
   the author is not responsible for any damage caused to your system 
   from using this software.    Use at your own risk.
