loops/agent/crawl/watsup/docs/html/code/example1.py
tschmid 41e98f0bef initial check in
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@2069 fd906abe-77d9-0310-91a1-e0d9ade77398
2007-09-25 06:31:14 +00:00

10 lines
385 B
Python

from watsup.winGuiAuto import findTopWindow,findControl,setEditText
from time import sleep
# Locate notepad's edit area, and enter various bits of text.
notepadWindow = findTopWindow(wantedClass='Notepad')
editArea = findControl(notepadWindow,wantedClass="Edit")
setEditText(editArea, "Hello, again!")
sleep(0.8)
setEditText(editArea, " You still there?",True)