Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate pywinauto python code? #27

Open
SaetreS opened this issue Jun 20, 2021 · 2 comments
Open

generate pywinauto python code? #27

SaetreS opened this issue Jun 20, 2021 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed
Milestone

Comments

@SaetreS
Copy link

SaetreS commented Jun 20, 2021

Hi,

The program has great potential and to increase it's useability it would generate pywinauto python code directly instead of pywinauto_recorder code. This would enable using the program for projects where you want to do more than just click some pre-defined buttons.

I'm not sure how much work this would be and you might have already given this some thoughts.

@github-actions
Copy link

Thank you very much for sharing this first issue.

@beuaaa beuaaa added this to the 2.0.0 milestone Jun 21, 2021
@beuaaa beuaaa added enhancement New feature or request help wanted Extra attention is needed labels Jun 21, 2021
@beuaaa
Copy link
Owner

beuaaa commented Jun 21, 2021

Hi @SaetreS,

Pywinauto recorder generates Python code with functions that return Pywinauto wrappers. It is possible to do everything that Pywinauto can do with these wrappers.

I found the search for graphical elements with the classic tools (Inspect.exe, PrintControlIdentifier, ...) quite tedious.
That's why I developed the Pywinauto recorder mini language. The goal is to have an easy to read Python code and to be able to identify graphical elements easily (with wildcards in an element path and other small functions). Once the element is identified you can access the Pywinauto wrapper and program in the classic way with Pywinauto.

However it is a good idea to be able to generate other styles of Python code (Pywinauto recorder code, Pure Pywinauto code, XPath, etc).
I had thought about it but I didn't do it because of lack of time. But if someone can implement it that would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants