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

Reading and setting absolute Mouse positions? #155

Open
BabyFnord opened this issue May 6, 2024 · 2 comments
Open

Reading and setting absolute Mouse positions? #155

BabyFnord opened this issue May 6, 2024 · 2 comments

Comments

@BabyFnord
Copy link

Hello @dekuNukem,

duckyPad would be a major timesaver in applications, where there are no shortcuts available to certain functions. Would duckyPad be able to run a script like

  • get current Mouse position and store it in a variable
  • move Mouse pointer to Position1
  • press Mouse button left, move Mouse pointer (x-10), press Mouse button left
  • restore initial Mouse position as set in that variable

… and what would such a script look like?
Thanks for your attention!

@dekuNukem
Copy link
Owner

Hi there! duckyPad acts like a regular USB keyboard to the computer, so there is no way for it to know the current mouse position natively.

However, you can move the mouse cursor relative to the current position, or use it to invoke a script on the computer itself such as autohotkey, which can do a lot more: https://www.autohotkey.com/docs/v1/lib/MouseMove.htm

@BabyFnord
Copy link
Author

Thanks for clarification. I understand that this possibly goes beyond of what duckyPad was originally designed for. AHK is Windows only and possibly needs admin rights to be installed in the first place, which can't always be assumed, for example when working in a lab at various workstations.

Tho there seems to be a way for implementing duckPads native relative Mouse positioning, if the Mouse pointer action would always be invoked while the pointer is in a sort of HOME position. Would it be possible to press a Mouse button and move it, while keeping that Mouse button pressed until duckyPad is being told to let go of the Mouse button?

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

2 participants