|
From: mustafa i. <mus...@gm...> - 2008-11-22 01:42:35
|
Hi, I hope there are still ppl on this mailing list!!! I have an app that once a button is clicked, opens a 'Open' Dialog form. How can I select a file from that second form. I have tried: formOpen = findTopWindows(wantedText='Open') openFileListBox = findControl(formOpen, wantedClass='ListBox') openFileListBoxItems = getListboxItems(openFileListBox) selectListBoxItem(openFileListBox,1) This is what I get from ShowWindows when the 'Open' Dialog appears: 2. [2622316, 'Open', '#32770'] [[2097998, 'Look &in:', 'Static'], [525016, '', 'ComboBox'], [459464, '', 'Static'], [3146508, '', 'ToolbarWindow32'], [2163446, '', 'ToolbarWindow32'], [1770324, '', 'ListBox'], [328398, '', 'SHELLDLL_DefView', [[2098130, 'FolderView', 'SysListView32']]], [4260862, 'File &name:', 'Static'], [2425720, 'ComboBoxEx32', [[459438, 'ComboBox', [[2556692, '', 'Edit']]]]], [[]], [1245962, 'Files of &type:', 'Static'], [1245968, '', 'ComboBox'], [918348, 'Open as &read-only', 'Button'], [1311548, '&Open', 'Button'], [1704810, 'Cancel', 'Button'], [918322, '&Help', 'Button'], [1442664, '', '#32770']] I guess what my question is how to change focus to the second window. Any suggestions are welcome -- -Mustafa Iqbal |