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

mouse move from code using XTEST extension does not work #249

Open
thenik opened this issue Feb 8, 2023 · 3 comments
Open

mouse move from code using XTEST extension does not work #249

thenik opened this issue Feb 8, 2023 · 3 comments

Comments

@thenik
Copy link

thenik commented Feb 8, 2023

Hello,

I am trying to do some automation for my xrdp session and it does not work.
How to reproduce:

sudo apt-get install xautomation
xte 'mousemove 200 200'

the same story from python code

import mouse
mouse.move(100, 100, absolute=True, duration=3)

When I run this code or xte from my notebook it works well as expected.

Any ideas how to manage this issue?

@matt335672
Copy link
Member

@thenik - I can reproduce this on the Xorg backend with your clear instructions. We'll make it an issue against that.

If you use the Xvnc backend, you should find the above command works fine - it does for me.

@matt335672 matt335672 changed the title mouse move from code does not work mouse move from code using XTEST extension does not work Feb 9, 2023
@matt335672 matt335672 transferred this issue from neutrinolabs/xrdp Feb 9, 2023
@thenik
Copy link
Author

thenik commented Feb 9, 2023

Here is my view no what did happen here:

  1. I connected from windows rdp client to linux \xrdp server.

  2. when I ran mouse.move command on the server X session it moved mouse
    but in 1 sec or even less windows rdp client moved mouse to original point because client has higher proirity.

So I see only 1 way how to solve that is to find a way how to turn off mouse position from a rdp client.

@jsorg71
Copy link
Contributor

jsorg71 commented Feb 9, 2023

When the pointer position is moved from the server side, we should send a PDU to update the client, see
https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/3058381e-c856-4b26-a93c-d8f5514f8c3c
I don't think we have ever implemented this.
Usually, one wants to run the recording software on the client so I don't think this has come up.

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

No branches or pull requests

3 participants