i am trying to access the control identifiers that gets displayed but i am unable to do so. when a Open window gets popped up only the OK and Cancel button i am able to access.. not able to acccess othe options. Please help
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
Once you have the dialog open and assigned to a variable then the print_control_identifiers() (also aliased as PrintControlIdentifiers) method should print all the available controls.
The 2nd line output for each control are the different identifiers (though things like spaces and ampersands (&) should be removed.
It is quite possible that Windows Media Player does not use 'standard' Win32 dialogs. But the Open dialog should be easy enough..
Here is the output of my testing of this (with errors and mistakes removed to protect the guilty :))
You can see (hopefully) that the FilenameEdit came from
I get access to the "File Name" in the "Select File to Export"in 3ds max 2015:
I first received information about the dialog box controls with "print_control_identifiers()":
The output:
Then i find a strings:
'Edit' and 'Button' - names of controls for access.
And I run:
For help view the docs:
https://pywinauto.googlecode.com/hg/pywinauto/docs/controls_overview.html
For example 'SetText' for all controls: