Simulate Mouse Movement?

Questions and answers about 3Dconnexion devices on Windows.

Moderator: Moderators

Post Reply
gravanoc
Posts: 11
Joined: Fri Oct 12, 2018 3:06 pm

Simulate Mouse Movement?

Post by gravanoc »

I'm looking through some stuff to see if I can find this, but maybe someone knows.

I want to simulate mouse movement with my CadMouse. Dragging movement like we normally do to re-position the cursor. For example, my cursor would start at x 300 y 600 and move to x 400 y 600.

Thanks!
gravanoc
Posts: 11
Joined: Fri Oct 12, 2018 3:06 pm

Re: Simulate Mouse Movement?

Post by gravanoc »

I figured it out. Just in case anyone else is interested, you can add mouse movement to your XML's using <MouseX> & <MouseY>. Use positive numbers to move mouse right, negative to move it left.

Ex:

<MacroEntry>
<ID>MoveRight</ID>
<Sequence>
<MouseX>25</MouseX>
<MouseX>25</MouseX>
<MouseX>25</MouseX>
</Sequence>
</MacroEntry>
jwick
Moderator
Moderator
Posts: 3331
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Simulate Mouse Movement?

Post by jwick »

There are others too:

<MouseXTo> an absolute location in pixels
<MouseYTo>

In progress (don't work yet - no one is asking):
<MouseXToNamedLocation> which can specify locations like: WindowCenter, ApplicationCenter, ScreenCenter, WindowUpperLeft/Right, Window LowerLeft/Right, WindowTop/Bottom/Left/RightCenter.

And you can write your own code to do anything else you want.
Blansett
Posts: 1
Joined: Tue Jan 29, 2019 3:14 am

Re: Simulate Mouse Movement?

Post by Blansett »

Is this code complete, Jwick? Will it work with the rest of my code as is?
jwick
Moderator
Moderator
Posts: 3331
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Simulate Mouse Movement?

Post by jwick »

I don't know what else you are doing.
But it looks as though <MouseX/YTo> are implemented.
The others are not.
app-developer
Posts: 1
Joined: Tue Feb 05, 2019 2:07 am
Contact:

Re: Simulate Mouse Movement?

Post by app-developer »

gravanoc wrote: Mon Jan 21, 2019 6:14 am I figured it out. Just in case anyone else is interested, you can add mouse movement to your XML's using <MouseX> & <MouseY>. Use positive numbers to move mouse right, negative to move it left.

Ex:

<MacroEntry>
<ID>MoveRight</ID>
<Sequence>
<MouseX>25</MouseX>
<MouseX>25</MouseX>
<MouseX>25</MouseX>
</Sequence>
</MacroEntry>
Thank you for sharing, might need this.
Post Reply