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

WIP: Automatic script generator #701

Open
wants to merge 113 commits into
base: master
Choose a base branch
from

Conversation

cetygamer
Copy link
Contributor

@cetygamer cetygamer commented Apr 1, 2019

Implements feature #332.

Everything implemented in folder pywinauto/recorder.

Recorder saves control hierarchy of application using class ControlTree. Using that class recorder can determine which element user has clicked on even if that element doesn't already exist.

Recorder uses UI Automation event handlers to monitor events generated by control of the application.

Based on all that data and some predefined event patterns recorder generates pywinauto-friednly python script that should repeat user's action upon execution.

EDIT (by @vasily-v-ryabov):
Example of usage:

C:\Python27\python.exe .\pywinauto\recorder\recorder_cli.py -b uia --cmd .\apps\WPF_samples\WpfApplication1.exe -v -o recorded_wpf.py

…ywinauto into dev-script-generator

# Conflicts:
#	pywinauto/script_generator/control_tree.py
#	pywinauto/script_generator/uiarecorder.py
@cetygamer cetygamer force-pushed the dev-script-generator branch 6 times, most recently from 62f3117 to ff8ce13 Compare June 9, 2019 11:29
@lgtm-com
Copy link

lgtm-com bot commented Jun 9, 2019

This pull request fixes 2 alerts when merging 19867af into 06b4945 - view on LGTM.com

fixed alerts:

  • 2 for Unused local variable

@jjbright
Copy link

@vasily-v-ryabov I'm waiting on this.... how soon we can get this?

@vasily-v-ryabov
Copy link
Contributor

@jjbright Currently nobody is working on this. My first priority is major release with Linux and macOS support + some re-factoring to make pywinauto API easier. This 0.7.0 release should happen till end of 2020 (exact deadline can't be set because this is a hobby project for all of us).

Script recorder will get its chance in 2021 with current available resources.

@jjbright
Copy link

@vasily-v-ryabov Thank you for responding quickly. I too see the good news as make pywinauto easier. I can't wait though, perhaps I've to struggle and get the automation with version 0.6.8.

Meanwhile, I made another request and tagged you as well... if you could show some line on that..., it would be a great help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants