python - Controlling a program with "pywinauto" (Windows XP) -
i'm new python , started using module "pywinauto" control program i'm using thesis.
i'm doing right this: pywinauto import application
prog=application.application() prog.start_('ramplus.exe') prog.ramplus.menuselect('file->new') until here fine "new" window this:

2 tables, 1 named "upper left" , other "lower right". each table has 2 lines "lat:" , "long:" , in each line have 3 rows. need modify value of each row
if try
a.new.upperleftcombo.click() i message "pywinauto.controls.win32_controls.staticwrapper object @ 0x013a9bf0>" think "pywinauto" acknowledges "upper left" , "lower right" rest have no idea how select.
any ideas?
p.s: saw somewhere creator of pywinauto, user "markm" answers questions here.can tag him or in post can see it? i'm new site don't know
thank in advance help
edit:do know if can copy whole content of window txt file pywinauto?
you might not able 'select' row in tables directly. there won't method in pywinauto such a.new.upperleftcombo.selectrow().
what might able instead send keypresses tables choose row , select it. example, might able use , down arrow keys choose row , press space select it. use typekeys method of hwndwrapper send keypresses control.
Comments
Post a Comment