Le 18 oct. 2015 à 11:19, Christian Schmitz <[email protected]> a 
écrit:

>> Yes, but for that, I have to find the code. I tried a loop from 0 to 300, 
>> with RemoteControlMBS.WinPressKey and no value produced these keys (I tried 
>> in a TextArea full of text); that's why I think something is broken, since 
>> at 128, it starts over like from 0.
> 
> scan codes are only from 0 to 127.

Yes, that's what I assumed. So why can't I find the right one in a loop?

>> Can you actually produce an arrow key or delete on your Win32 computer?
> 
> Of course. If you have the right key codes.

I mean, I checked all codes from 0 to 127 and those keys were never produced. 
My question was “have you been able to test them?”.

>> I'm getting j=-1, just for o and arrow keys.
> 
> here is it:
> 
>  const MacCursorLeft  = 123
>  const MacCursorRight = 124
>  const MacCursorDown  = 125
>  const MacCursorUp    = 126
> 
>  const MacCursorLeftChar  = 28
>  const MacCursorRightChar = 29
>  const MacCursorDownChar  = 31
>  const MacCursorUpChar    = 30
> 
>  call RemoteControlMBS.MacPressKey MacCursorLeftChar, MacCursorLeft
> 
> could you go with those codes?

Yes, thanks. In fact, I already do that with my select case; I was just 
pointing the fact that the arrow keys and “o” aren't caught by 
MacTextForKeyCode, so, in my opinion, it's a bug; is it a bug in the OS or in 
the plugin?

>> So how does Remote Desktop and (if I recall correctly) TeamViewer work 
>> around this issue?
> 
> There is probably a trick we didn't see.

Certainly… I guess the subject is not well widespread, so I don't think the 
answer is on Google. I'll continue searching…

>> Do you know they would work for that? Apple Remote Desktop catches 
>> Command-Tab and send it further (but TeamViewer doesn't), which implies it's 
>> doable. For now, I think I'll just catch Option-Tab and convert it to 
>> Command-Tab on the remote side (in addition, Windows to Mac would work like 
>> that anyway).
> 
> Good.
> I bet those apps may simply have extra permissions or use another API which 
> allows it.

I guess that was my actual question; which API should be used?

Thank you.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to