using mxj Robot class : arrow keystrokes not working within live?

Apr 10, 2010 at 12:22pm

using mxj Robot class : arrow keystrokes not working within live?

hello all, first post here !

anyways..
seems only certain keyevents go through to the live environment ..

it’s funny…
I can use my midi controller to freely map to the arrow keys from an m4l patch..
but in live they won’t work !
(…in any other program it does !)

this is really annoying to me..as you’d imagine..
because an m4l patchs’ priority is to control ‘live’ and not external apps
makes no sense !

am I doing something wrong maybe ?

(using ‘mxj autobot’ using Java keyevent constants )

#49663
Apr 11, 2010 at 10:40am

A few variables here. The device needs to be selected in order for most keystrokes to work. Just like how focus works in Max or even other plugins in Live.
Another problem may be that you have the keyboard MIDI enabled.

The safest bet is to use something that takes keys directly from keyboard, regardless of which app is in focus. The [hi] object may work for that, though it doesn’t seem to work with ASCII codes.

#178379
Apr 11, 2010 at 12:49pm

nah.. it has nothing to do with focus..
I got the sl ‘locked’ to the device..
the arrow keys DO WORK.. anywhere everywhere OUTSIDE live

to make this clear..
I can use ROBOT class in M4L ..
some keys (like ‘abc’ keys etc.) work withing Live..
the navigation keys for instance.. DON’T

bah… ANOTHER UNEXPLAINED /UNDOCUMENTED LIMITATION
getting tired of hitting all these dead ends !

#178380
Apr 11, 2010 at 4:25pm

Hi Folks,

Is the mxj.Robot class for Windows?
Where can I find it on the internet?

Kind regards,

Willem

#178381
Apr 11, 2010 at 7:58pm

Ah I see. Haven’t used this robot stuff you speak off.

#178382
Apr 12, 2010 at 2:09am

hey bjorn ..
this is the max stuff..’autobot’..includes a help file

http://sites.google.com/site/theoldmanthesea/download/

java source:

http://www.thelightningbolts.com/luke/max/autobot.java

@xanadu
Robot is a Class in Java that allows emulating keystrokes and mouse action

#178383
Apr 12, 2010 at 5:46am

Hey 3dot…,

First off, autobot is not standard. Secondly, if it generates keystrokes, one can expect that the result of the keystrokes would be dependent of the frontmost application. So you might want to check that Live doesn’t intercept the keystroke first.

#178384
Apr 12, 2010 at 3:05pm

^^.. hey Emmanuel…
yes I know ‘autobot’ is not standard..
but Robot is a Java standard class…(and a very simple one at that)

and that’s exactly where the problem is..
all keys work on EVERY ‘selected’ application…
(it’s pretty absurd.. as it’s running from an m4l patch!)

my qustion really is…
how come the only exception is Live???

this bothers me because in my setup ..
I’m sending midi
BCR->Midi-ox->MidiYoke->Bomes midi trans->thorugh another Yoke->Live
only to achieve keystroke sequence emluation to access Live’s functions

a chain I would have wished to minimize to only
BCR->Live
and that ‘theoretically’ should be possible with the power of Max within Live..

on another old workaround topic :
my desktop evolver is routed the same way using the ‘soundtower’ app in order to use it’s sysex..
but no automating in live except notes and ccs..
the m4l “solution” is to route sysex out of live using osc..
which I do in my patch..
but these approaches are clumsy and have their toll on the cpu /stability..
(routing all that midi around)

I’m not blaming .. just asking why? and how this could be solved ?

#178385
Apr 13, 2010 at 9:52am

Why aren’t you using Mackie emulation? A lot of the menu functions are Mackie commands. You can navigate and there are a few more global controls.
Sounds a hell of a lot easier than doing all this keystroke stuff.

http://web.archive.org/web/20030811025034/http://members.aol.com/mhigrules/MCMap.htm

#178386
Apr 13, 2010 at 10:07am

The help file at

http://sites.google.com/site/theoldmanthesea/download/

is working for me on Windows XP. Keystrokes are send to the selected window. Is it possible to always send them to the Live window? I want to automate some functions of Live that are not in MFL. I don’t know Java well enough to program this myself.

#178387

You must be logged in to reply to this topic.