Forums > MaxMSP

script to display (unfold) the items of umenu


Dec 06 2009 | 2:05 am

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

Dec 06 2009 | 4:43 am

Like this?

lh


-- Pasted Max Patch, click to expand. --

Dec 06 2009 | 9:18 am

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.

Dec 07 2009 | 2:15 am

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

Dec 07 2009 | 8:06 am

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

Dec 13 2009 | 3:51 pm

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

best,
prko

Dec 13 2009 | 6:18 pm

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

Dec 14 2009 | 6:54 pm

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. —
Dec 14 2009 | 10:22 pm

Something like this is what I had in mind:


-- Pasted Max Patch, click to expand. --

_
johan

Dec 15 2009 | 2:39 am

nice !

Dec 17 2009 | 12:31 am

Why won’t this work.. ?

— Pasted Max Patch, click to expand. —
Dec 17 2009 | 12:45 am

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

Dec 17 2009 | 12:58 am

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. --

Dec 17 2009 | 3:57 am

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

— Pasted Max Patch, click to expand. —
Dec 20 2009 | 2:05 am

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!

Dec 25 2009 | 10:15 pm

to Luke Hall

I have not understood the comment in your patch:

< < replace this with the real autobot mxj

What does it mean?

Dec 25 2009 | 10:18 pm

to stoplaughing

it is fine.
Thanks!

Dec 25 2009 | 10:35 pm

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

Viewing 18 posts - 1 through 18 (of 18 total)

Forums > MaxMSP