We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
click() should send WM_* messages to the control and click_input() should simulate HW action. As stated in the documentation:
click()
click_input()
https://pywinauto.readthedocs.io/en/latest/code/pywinauto.base_wrapper.html#pywinauto.base_wrapper.BaseWrapper.click_input
https://pywinauto.readthedocs.io/en/latest/code/pywinauto.controls.hwndwrapper.html#pywinauto.controls.hwndwrapper.HwndWrapper.click
in the backgroud they both call mouse._perform_click_input(). So in the end they both do the same
mouse._perform_click_input()
element.click_input()
mouse.click(coords=(x, y))
import pywinauto.mouse as mouse from pywinauto.application import Application app = Application(backend="uia").start("notepad.exe") elem = app.window().child_window(title='File', control_type='MenuItem') elem.click_input() # or coo = elem.rectangle().mid_point() mouse.click(coords=(coo.x, coo.y))
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected Behavior
click()
should send WM_* messages to the control andclick_input()
should simulate HW action. As stated in the documentation:https://pywinauto.readthedocs.io/en/latest/code/pywinauto.base_wrapper.html#pywinauto.base_wrapper.BaseWrapper.click_input
https://pywinauto.readthedocs.io/en/latest/code/pywinauto.controls.hwndwrapper.html#pywinauto.controls.hwndwrapper.HwndWrapper.click
Actual Behavior
in the backgroud they both call
mouse._perform_click_input()
. So in the end they both do the sameSteps to Reproduce the Problem
element.click_input()
mouse.click(coords=(x, y))
Short Example of Code to Demonstrate the Problem
Specifications
The text was updated successfully, but these errors were encountered: