class - SendKeys

Download:

https://pypi.python.org/pypi/SendKeys/

FILE:

    c:\python27\lib\site-packages\sendkeys.py

exceptions:

KeySequenceError

Usage:

SendKeys(keys, pause=0.05)

import SendKeys as SK
send = "dir{ENTER}"

SK.SendKeys(send)

SK.SendKeys("+hello{SPACE}+world+1")

可用的 Keys:

{BS}{BACKSPACE}
{ESC}
{TAB}

{DOWN}

{SPACE}

{ENTER}

{PGDN}
{PGUP}

{DEL}

{F1}