script to display (unfold) the items of umenu

Dec 6, 2009 at 2:05am

script to display (unfold) the items of umenu

Dear users,

can we unfold (display) the items of a umenu without clicking the umenu?
I have tried to find a script.
I cannot find anything….

best,
prko

#47052
Dec 6, 2009 at 4:43am

Like this?

lh

– Pasted Max Patch, click to expand. –
#169163
Dec 6, 2009 at 9:18am

Thanks.
I mean, however, the umenu itself should unfolded without mouse click.
In your patch, we see the items as a message and umenu is not expanded.

#169164
Dec 7, 2009 at 2:15am

Oh right, now I see. I’m afraid the answer is “no”. This isn’t possible at the moment but you can step through the items with the “prev” and “next” messages. What are you trying to do?

lh

#169165
Dec 7, 2009 at 8:06am

Like you see on websites sometimes, hovering with the mouse will unfold it (which creates a horrendously nervous user interface when no delay is used). You could give it a try with the lcd object. All tools are there: writing, mouse tracking, changing size.

_
johan

#169166
Dec 13, 2009 at 3:51pm

thanks a lot.
I have given up this idea.
lcd object can not expand the umenu.

best,
prko

#169167
Dec 13, 2009 at 6:18pm

You are right: [lcd] cannot expand [umenu] but I think what Johan meant was that you could code your own [umenu] replacement with [lcd] that does exactly what you want. The [jsui] object would be another option.

lh

#169168
Dec 14, 2009 at 6:54pm

I’m not sure this helps,but Martin Ritters LoadMedia patch has a umenu that loads into jit.cellblock which is basically an ‘unfolded’ umenu. Here’s his patch so you can see if his idea is helpful

– Pasted Max Patch, click to expand. –
#169169
Dec 14, 2009 at 10:22pm

Something like this is what I had in mind:

– Pasted Max Patch, click to expand. –

_
johan

#169170
Dec 15, 2009 at 2:39am

nice !

#169171
Dec 17, 2009 at 12:31am

Why won’t this work.. ?

– Pasted Max Patch, click to expand. –
#169172
Dec 17, 2009 at 12:45am

it only took me 15 minutes to realize I’m an idiot

#169173
Dec 17, 2009 at 12:58am

Search the forum for the “autobot” [mxj] class and you can use [sel] to send it the “mouseclick 1″ message when your mouse [hover]s over a [umenu] with a certain scripting name.

lh

– Pasted Max Patch, click to expand. –
#169174
Dec 17, 2009 at 3:57am

i couldnt find the mxj autobot.. aka.mouse works fine

– Pasted Max Patch, click to expand. –
#169175
Dec 20, 2009 at 2:05am

the java “robot” class will work cross-platform though.

also there is the

;max pupdate $1 $2

message which will move your mouse wherever. add the robot class and you can auto-click anywhere you want, including the Shut Down command for your computer…or someone else’s if you get into networking. evil and fun!

#169176
Dec 25, 2009 at 10:15pm

to Luke Hall

I have not understood the comment in your patch:

< < replace this with the real autobot mxj

What does it mean?

#169177
Dec 25, 2009 at 10:18pm

to stoplaughing

it is fine.
Thanks!

#169178
Dec 25, 2009 at 10:35pm

The [mxj autobot] java class is not included in the standard max distribution but you should be able to find it on the forum, I recently linked to the code for someone as attachments have been broken.

lh

#169179

You must be logged in to reply to this topic.