Le 17 oct. 2015 à 17:13, Christian Schmitz <[email protected]> a
écrit:
>> Anyway, the biggest problem I'm having on the Mac side is with the mouse. I
>> can move the mouse remotely (I see it moving as well on the remote
>> computer), but it's like if the applications won't notice the move (e.g. the
>> Dock doesn't show the name of the app the mouse is over, menu items aren't
>> highlighted until I actually click on them or the screen saver does not
>> vanish with mouse moves).
>
> That's documented by apple. It just changes the mouse position.
Ok, I checked for this, as it's a relatively big problem. First, when I search
for “simulate mouse move Mac” on Google, I get almost not a single page talking
about this fact. Users just ask the question “how to move the mouse?”, get an
answer in C code (which I can't test since I don't program in C) and reply with
“thanks”.
I've found one website which suggests to simulate some kind of mouse dragged
event, with this code:
[NSEvent addGlobalMonitorForEventsMatchingMask:(NSMouseMovedMask)
handler:^(NSEvent *event)
{
[self simulateMouseEvent: kCGEventLeftMouseDragged];
}];
That's rather for when a window jumps from start position to end position
between the mouse down and the mouse up, but since I also get this problem, I'm
wondering if this is not the key to the entire problem.
What do you think about that?
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info