mouseevent

Accessibility-Tweak in LibreOffice: How to prevent accidentally selected text from getting replaced when typing?

瘦欲@ 提交于 2020-12-13 04:53:11
问题 I'm trying to make my 97 years old grandma's laptop(Ubuntu 20.04) more accessible for her. She often is frustrated because text that she has written in LibreOffice Writer vanishes. Disabling the touchpad and using an external mouse already helped a lot. But I suspect that she still accidentally selects text, when she tries to place the text cursor with her mouse(by dragging or double-clicking). When she continues typing the selected text is being overwritten. Because she needs to focus on the

Is there a way to send a click event to a window in the background in python?

孤人 提交于 2020-12-13 04:52:23
问题 So I'm trying to build a bot to automate some actions in a mobile game that I'm running on my pc through Bluestacks. My program takes a screenshot of the window, looks for certain button templates in the image and returns their coordinates. I would now like to be able to send a click event to the window at those coordinates, but since I would also like to do other things while the bot runs in the background I'm looking for a way to send the mouse event directly to the window (even if it's