bob3d
Full Member
Posts: 26
|
Post by bob3d on Aug 25, 2018 19:01:49 GMT
Is it possible to suspend the user's mouse movements while MMM is running a macro that contains mouse placements and clicks??? I find that if I accidentally bump my mouse when I am running a macro that contains a lot of mouse repositioning and clicks, it throws the mouse off from the intended target. I have changed the macro clicks to 1-millisecond duration to minimize the effect that is happening, but it still allows the mouse pointer to move as the physical mouse moves. I'd like to be able to suspend mouse user movement and re-enable them within the script when the time is appropriate.
|
|
|
Post by Steve on Aug 25, 2018 22:27:27 GMT
Hi Bob,
Suspending or 'locking' the mouse from the operating system is not possible with MMM. When a macro line has set mouse X and Y coords the mouse will move with that line execution.
1 millisecond click events are not recommended for full click events. The OS may need some time to work the click event and give back the desktop a response. If your macro is to fast for a click event then it is possible to miss the reply to the desktop. It may be the case that your macro is being thrown off not by your mouse movement however by your click duration timing.
I recommend using 'Left Click' if your not planning on holding the click. For fast timing below 100 milliseconds 'Left Click Down' and 'Left Click Release' events may (will most likely) be missed.
1 | 600 | 604 | 1 | Left Click 2 | 600 | 614 | 1 | Left Click 3 | 600 | 634 | 1 | Left Click 4 | 600 | 654 | 1 | Left Click The macro above will do a full left click every 1 milliseconds at Mouse X 600 and Mouse Y 604, 614 634 and 654 respectfully. The mouse will move to those coordinates for each line execution.
Hope this helps.
|
|
bob3d
Full Member
Posts: 26
|
Post by bob3d on Aug 26, 2018 13:04:17 GMT
Oh. So, instead of using "Left click Down" followed by a "Left Click Release" that the MMM recorder gives you, use the "Left Click" command instead. I'll give it a try... Thank you!
bob
|
|