Skip to content

Conversation

@phd
Copy link

@phd phd commented Feb 20, 2024

click, mousedown, mouseup: optional position arguments

Usage: %s [options] <button> [<x> <y>]

With x and y specified the event is dispatched in given position
(relative to WINDOW if specified) without moving the mouse pointer.

getmouselocation: optional --window argument

--window <windowid>    - get mouse location relative to window

@phd phd changed the title click, mousedown, mouseup: optional position arguments click, mousedown, mouseup: optional position arguments Feb 20, 2024
@phd phd force-pushed the phd-position-arguments branch from f8b178e to c794a4c Compare February 24, 2024 16:38
getmouselocation: optional --window argument
@phd phd force-pushed the phd-position-arguments branch from c794a4c to b3a508d Compare February 24, 2024 16:53
@jordansissel
Copy link
Owner

jordansissel commented Oct 16, 2024

Interesting idea! Can you tell me more what you are trying to do? What is gained by not moving the X pointer itself?

@phd
Copy link
Author

phd commented Oct 18, 2024

Interesting idea! Can you tell me more what you are trying to do? What is gained by not moving the X pointer itself?

I'm trying to send mouse events to a window in the background.
I do not want mouse cursor to actually move and interrupt what I'm doing in the foreground application.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants