Le 28/11/2012 00:05, Christian Schmitz a écrit :
> On 27.11.2012, at 23:47, fqd <[email protected]> wrote:
>
>> How would you write it ?
>>
>
> if bitwiseand(test,1) = 1 then
>
> but I didn't try it myself.
>
> Greetings
> Christian
>
No, It doesn't work, as Test = 0 already after
Bitwise.ShiftRight( ModFlag, NSEventMBS.NSCommandKeyMask) :
if e.type = NSEventMBS.NSKeyDown then
Dim ModFlag as integer = e.modifierFlags
' ModFlag = ModFlag
Dim Test as integer = Bitwise.ShiftRight( ModFlag,
NSEventMBS.NSCommandKeyMask)
Test = Test // = 0 <----------
if Test = 0 then // It's a Command key with something...
However, it DOES trap the Command key, with any other modifiers and keys
so far.
Thanks,
Fred
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info