With this share library you can simulate keyboard input and Mouse mouvement
on your Windows 98/NT/2000 and XP machine.
It's design to :
-
test application,
-
simulate user inputs on remote machines,
-
automize some tasks within your preferred applications.
-
You can build, what I call a GuiAPI.
General
In 2000 I've written WindTclSend for Tcl/Tk. Then few months after, I've done a version for
Python. Today I provide you a new version based on ctypes
With this module, you add to your standard Python for Windows interesting capabilities
:
-
send characters to the foreground window as a user can do.
-
send control key (ctrl-o, ctrl-c, ctrl-v, ....)
-
set/get the "clipboard".
-
check the title of the foreground window.
-
copy information from one window to an another via the cut and paste.
-
check the list of open windows.
-
Maximize, minimize or restore the foreground window.
-
Moving the mouse where the origine is the upper-left corner of the desktop.
-
Moving themouse where the origine is the upper-left corner of the foreground
window.
-
Right clicking, or Left clicking or Middle clicking.
- Move windows.
These functionnalities added to those provided by Python, you have a tool to
add intelligence (test, loop, ...) into your automatisation.
I've develop the kernel of this module in 2000 (version 1.0) for Tcl/Tk (here),
and since that time, it run on my PC regularely to generate some reports.
Nevertheless, any comments or remarks are welcome.
Download
For Python 2.2, you can get the compiled DLL wind-1.1.win32-py2.2.exe.
For Python 2.3, you can get the compiled DLL wind-1.1.win32-py2.3.exe.
For Python 2.4 having installed the ctypes library, you can get the shared module windpysend-1.2-py-2.4.zip
For Python 2.5 (ctypes is included in python-2.5), you can get the shared module windpysend-1.2-py-2.5.zip
- To install all the files included in this extension, execute "wind-1.1.win32-py2.x.exe" or unzip the "zip"
- To have informations syntax about all the commands provided by this
DLL, type :
"import WindPySend
help(WindPySend)"
or look here.
- Get and try some of the samples stored here.
License
This is a shareware library for Python.
Since everything is not yet free (and specifically under the Windows world),
I will ask you 10Euro for a license. Nevertheless,
you can test this module for free within 30-days; after that period, I ask you
to buy a license by using PayPal services. Type-in your code (result of "code()")
and click on "PayPal payment" button.
(If you want several licenses, type-in each code in the box and adapt the quantity in the PayPal screen)
You can check the number of days before the end of the trial periode by
using the command "WindPySend.test()"
NOTE : WinTclSend and WindPySend licenses are
the same. Don't be surprised if Paypal talk about WinTclSend license. Thanks
Requirements
You must have Python 2.2 or higher. You can get the last version of Python
at www.python.org.
If you want to use the ctypes based version, assure that this library is available on your platforms
This was tested with:
Python 2.2 on Windows 98, Windows NT 4.0,
Python 2.3 on Windows 2000,
Python 2.4 on Windows XP,
Python 2.5 on Windows XP.
Back to home
Last modification July, 2007