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

recording both click and send_key #60

Open
aditya11ad opened this issue May 18, 2023 · 8 comments
Open

recording both click and send_key #60

aditya11ad opened this issue May 18, 2023 · 8 comments
Assignees
Milestone

Comments

@aditya11ad
Copy link

Hi,

if using calculator and clicking some buttons and also passing values from keybord , then only click is being recorded.

is there any way to capture both .

Thanks in advance .

@github-actions
Copy link

Thank you very much for sharing this first issue.

@beuaaa
Copy link
Owner

beuaaa commented May 21, 2023

Hi,

Could you copy in your message the recorded file ?

@aditya11ad
Copy link
Author

that can be done.
but it won't be automation then.

@beuaaa
Copy link
Owner

beuaaa commented May 23, 2023

I would like to study your use case. There is probably a problem with Pywinauto Recorder. Having the file generated by Pywinauto Recorder would help me a lot to solve it.

@aditya11ad
Copy link
Author

hi,
activities performed on calculator :

click -> 5
click -> multiply
press -> 2
click ->equal

generated script :

from pywinauto_recorder.player import *
with UIPath(u"Calculator||Window"):
	with UIPath(u"Calculator||Window->||Custom->||Group"):
		click(u"Number pad||Group->Five||Button")
	with UIPath(u"Calculator||Window->||Custom->||Group->Standard operators||Group"):
		click(u"Multiply by||Button")
		click(u"Equals||Button")

@beuaaa
Copy link
Owner

beuaaa commented May 30, 2023

Thank you for your comprehensive description of this use case.

I've understood the problem: pressing key 2 is not captured by Pywinauto Recorder.
This is because Pywinauto Recorder only captures keystrokes when a field is filled in by the user.

To make this use case work, a solution would be to enable the capture of all keyboard events.

@aditya11ad
Copy link
Author

hi,
thanks for the quick response.

so how to enable the capture of all keyboard events.

@beuaaa
Copy link
Owner

beuaaa commented May 30, 2023

This requires the following changes to be made in Pywinauto Recorder:

  • Add the "all keyboard events" entry to the "Process events" menu
  • Implement the function process "all keyboard events"

@beuaaa beuaaa self-assigned this May 30, 2023
@beuaaa beuaaa added this to the 0.6.7 milestone May 30, 2023
@beuaaa beuaaa modified the milestones: 0.6.7, 0.6.8 Jan 10, 2024
@beuaaa beuaaa modified the milestones: 0.6.8, 0.6.9 Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants