loops/agent/crawl/watsup/docs/html/code/example3.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

17 lines
432 B
Python

from watsup.launcher import launchApp,terminateApp
from watsup.winGuiAuto import findTopWindows
import example2
# find an instance of SimpleForm. If one isn't there, launch it
forms=findTopWindows(wantedText='Simple Form')
if forms:
form=forms[0]
else:
form=launchApp('simple.exe',wantedText='Simple Form')
example2.main()
# and terminate the form
terminateApp(form)