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!
Simulate Mouse Movement?
Moderator: Moderators
Re: Simulate Mouse Movement?
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>
Ex:
<MacroEntry>
<ID>MoveRight</ID>
<Sequence>
<MouseX>25</MouseX>
<MouseX>25</MouseX>
<MouseX>25</MouseX>
</Sequence>
</MacroEntry>
Re: Simulate Mouse Movement?
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.
<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.
Re: Simulate Mouse Movement?
Is this code complete, Jwick? Will it work with the rest of my code as is?
Re: Simulate Mouse Movement?
I don't know what else you are doing.
But it looks as though <MouseX/YTo> are implemented.
The others are not.
But it looks as though <MouseX/YTo> are implemented.
The others are not.
-
- Posts: 1
- Joined: Tue Feb 05, 2019 2:07 am
- Contact:
Re: Simulate Mouse Movement?
Thank you for sharing, might need this.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>