Here after output of the help(WindPySend) command.
NAME
WindPySend - WindPySend is a clone of WindTclSend for Pythoniacs.
This version is based on WindTclSend 1.5 which runs since several years on without
problems on Win98, W2000 and NT.
FILE
<python path>\lib\site-packages\windpysend.py
FUNCTIONS
code(...)
Give your code. This is required
to get the the proper license key
cur_getelemsize(...)
cur_getelemsize
to get the size of the element under
the mouse
cur_getelemtext(...)
cur_getelemtext
to get the text of the element under
the mouse
cur_getpos(...)
cur_getpos
to get the mouse position (rel. to
the screen)
cur_getwindtext(...)
cur_getwindtext
to get the windows name under the
mouse (can be in background)
cur_getwpos(...)
cur_getwpos
to get the mouse position (rel. to
the foreground window)
cur_lclick(...)
cur_lclick
to simulate a left button click
cur_mclick(...)
cur_mclick
to simulate a middle button click
cur_rclick(...)
cur_rclick
to simulate a right button click
cur_setpos(...)
cur_setpos(<x>,<y>)
to set the mouse at the specified
position (rel. to the screen)
cur_setwpos(...)
cur_setwpos(<x>,<y>)
to set the mouse at the specified
position (rel. to the foreground window)
getcb(...)
getcb
to get the content of the clipboard
gettext(...)
gettext o get the active window name
getwindsize(...)
getwindsize([window title])
to get the size and position of a
specific window or if not specified the foreground one
maximize(...)
maximize([window title])
to maximize a specific window or
if not specified the foreground one
minimize(...)
minimize([window title])
to minimize a specific window or
if not specified the foreground one
minimizeAll()
Minimize all windows not yet minimized.
With HELP give you the windows minimized.
putcb(...)
putcb(<string>)
to put strings into the clipboard
restore(...)
restore([window title])
to restore a specific window or if
not specified the foreground one
send(...)
send(<text to send>,[<sleep>],[<timeout>])
to send a text to the foreground
window at the cursor position
setwindsize(pos, dim=None)
setwindsize((<x>,<y>),(<w>,<h>))
or setwindsize(((<x>,<y>),(<w>,<h>)))
to set the size and position of the
foreground window
show(...)
show(<window name>)
to put in active a window (by using
the minimize-restore functions)
show2(...)
show2(<window name>)
to put in active a window (without
minimize-restore functions)
!!!!BUT may
be doesn't work on all machines!!!!
state(...)
state(<window name>)
to get the status of a window (Maximized,
Minimized or Normal)
test()
Test the license
waitwind(wind, max=5)
wait a specific window until max
(in seconds) is reached. Return the wait time or None.
With DEBUG print out the ativity
wlist()
return a list of all existing window's
title.
DATA
DEBUG = 0
__file__ = r'<python path>\lib\site-packages\WindPySend.pyc'
__name__ = 'WindPySend'
__version__ = '1.1'
VERSION
1.1
You have the possibility to send some special characters.
For example ctrl+c, ctrl+o, PF4, ...
To distinguish a normal string from a special character, you must enclose it between pipes(the character |).
For example, if you want to send ctrl+c, you must send the following string : "|CTRL+|c|CTRL-|". This say that you want type the character "CTRL", hold that key, type "c", and release "CTRL".
If you want to send the pipe character, send |||.
"ALT+" press ALT
"ALT-" release ALT
"ALTL+" press left ALT key
"ALTL-" release left ALT key
"ALTR+" press right ALT key
"ALTR-" release right ALT key
"CTRL+" press CTRL
"CTRL-" release CTRL
"CTRLL+" press left CTRL key
"CTRLL-" release left CTRL key
"CTRLR+" press right CTRL key
"CTRLR-" release right CTRL key
"SHIFT+" press SHIFT
"SHIFT-" release SHIFT
"SHIFTL+" press left SHIFT key
"SHIFTL-" release left SHIFT key
"SHIFTR+" press right SHIFT key
"SHIFTR-" release right SHIFT key
"TAB" press the tabulation key
"RET" press the return key
"ESC" press the escape key
"BACK" press the backward key
"DEL" press the delete key
"INS" press the insert key
"HELP" press the help key
"LEFT" send the cursor to the left
"RIGHT" send the cursor to the right
"UP" send the cursor to up
"DOWN" send the cursor to down
"PGUP" press the page up key
"PGDN" press the page down key
"HOME" press the home key
"END" press the end key
"F1" press the function key F1
"F2" press the function key F2
"F3" press the function key F3
"F4" press the function key F4
"F5" press the function key F5
"F6" press the function key F6
"F7" press the function key F7
"F8" press the function key F8
"F9" press the function key F9
"F10" press the function key F10
"F11" press the function key F11
"F12" press the function key F12
"NUM0" press the 0 on the key pad
"NUM1" press the 1 on the key pad
"NUM2" press the 2 on the key pad
"NUM3" press the 3 on the key pad
"NUM4" press the 4 on the key pad
"NUM5" press the 5 on the key pad
"NUM6" press the 6 on the key pad
"NUM7" press the 7 on the key pad
"NUM8" press the 8 on the key pad
"NUM9" press the 9 on the key pad
"NUM*" press the * on the key pad
"NUM+" press the + on the key pad
"NUM-" press the - on the key pad
"NUM," press the , on the key pad
"NUM/" press the / on the key pad