replace mouse

Dec 27, 2010 at 1:21pm

replace mouse


i’m sorry, i don’t speak english very well
it’s an urgent message

I would like to replace the function of the mousse in the java code to use only two number box (x,y). But I don’t understand what thing I must change in the java code to do it.

Thank you for your help.

  1. dessin.maxpat
Dec 27, 2010 at 7:07pm

only had a brief look at your patch. it seems to me that the “move x y” is your problem. you have a [pak move 0 0] going to a [prepend set] going to a message. well, since you use the “set” message that will only set the message but not send it!! so get rid of the message box and the prepend object and go directly from [pak 0 0] to the jsui. that should do the trick.
good luck.

Dec 28, 2010 at 4:54pm

Thank you for your answer. It was very helpful, but now max crash after some actions. i don’t know why. Tank’s a lot!

Dec 30, 2010 at 2:32pm


I need help.
I don’t understand why the patch crash when I change the brush.
I think that maybe the function “move” is the reason of the crash.

Thank a lot for some informations.

  1. dessin.maxpat
Jan 4, 2011 at 3:33pm

help me please….

Jan 5, 2011 at 4:32pm

Your touch and move function should probably look like this:

function touch(x,y)

function move(x,y)
	ondrag(x, y);

You must be logged in to reply to this topic.