click

Oct 15, 2006 at 8:30pm

click

is there a
;Max
message to click the mouse?

#28160
Oct 16, 2006 at 9:27am

don malone wrote:
> is there a
> ;Max
> message to click the mouse?

to click it where?
What are you trying to do?
Within Max you won’t need it…

Or do you mean this:-)

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 119 90 152 196617 symbol “please click mouse!”;
#P newex 119 115 127 196617 dialog;
#P connect 1 0 0 0;
#P window clipboard copycount 2;

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#86167
Oct 16, 2006 at 11:27am

#86168
Oct 16, 2006 at 12:08pm

i am trying to insure that all objects are deselected before interpreting a keystroke.
i tried moving the cursor with ;max pupdate x y
but that does not deselect the current object

#86169
Oct 16, 2006 at 12:29pm

#86170
Oct 16, 2006 at 12:33pm

i found this in the archives

max v2;
#N vpatcher 20 74 620 474;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#N thispatcher;
#Q end;
#P newobj 155 257 60 196617 thispatcher;
#P window linecount 10;
#P message 155 125 72 196617 script new selbox number -20 -20 10 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0 , script send selbox select , script delete selbox;
#P connect 0 0 1 0;
#P pop;

works fine
but i would appreciate other suggestions

#86171
Oct 16, 2006 at 12:42pm

On 16 oct. 06, at 14:08, don malone wrote:

> i am trying to insure that all objects are deselected before
> interpreting a keystroke.
> i tried moving the cursor with ;max pupdate x y
> but that does not deselect the current object

One way, as you may find in the forum, is to use a script that creates
a new object, select it and deletes it.

Search the forum with “deselect”, or jump here:

http://www.cycling74.com/forums/index.php?
t=msg&goto=76849&rid=0&S=7e329a1a4602d34207ebcbf834784306&srch=deselect#
msg_76849

_____________________________
Patrick Delges

Centre de Recherches et de Formation Musicales de Wallonie asbl

http://users.skynet.be/crfmw/max

#86172
Oct 16, 2006 at 12:44pm

#86173
Oct 16, 2006 at 6:56pm

On 16-Oct-2006, at 14:08, don malone wrote:
> i am trying to insure that all objects are deselected before
> interpreting a keystroke.

I think what you’re really asking for is a ‘; max deselectall’
message. You’re trying to interpret something from key and sometimes
a number box is selected, right?

Programmatically clicking the mouse is a can of worms: you have no
way of knowing that any particular coordinate is “free”. Even if
coordinates are specified in window-local space, there may be another
window overlapping when someone else is running your patch. And
zillions of other gotchas.

There is, of course, ice.key. Get keystrokes anywhere, anytime, it
doesn’t matter if Max is the frontmost app, if your window is
frontmost or behind, or if a number box thinks it has focus. It’s all
in your control.

Best, Peter

————– http://www.bek.no/~pcastine/Litter/ ————-
Peter Castine +–> Litter Power & Litter Bundle for Jitter
Universal Binaries on the way
iCE: Sequencing, Recording &
Interface Building for |home | chez nous|
Max/MSP Extremely cool |bei uns | i nostri|
http://www.dspaudio.com/ http://www.castine.de

#86174
Oct 16, 2006 at 7:12pm

> Of course, but a click without info about what to click on dosn’t make
> sense.

if you click three posts above you might find out
hat he wants to click on.

> I am sure he could explain what he wants to do with it. The solution
> might be very different than “sending a mouse click”
> Another info is also important: The Operating system…
>
> Stefan

if you ever gonna send me a mouseclick, please always .zip
it, as i do not have .sitx on OS 9.

from looking at the problem, the solution with the
creation of a new object seems to be an elegant solution,
at least i cant think of anything better either.

-110

#86175

You must be logged in to reply to this topic.