wanted: how do you track mouseover?

Apr 18, 2006 at 3:37am

wanted: how do you track mouseover?

during the last 12 hours i am using MAX again (yes
normally i only post to the forum but not use the app).

and whenever i use MAX i run into unanswered questions
on my imaginary “to ask somebody later” list.

PLEASE i need something which is

1.
transparent and can track mouseover/not mouseover

or

2.
can track mouse position relative to the patcher
window (mousestate uses the monitor)

i simply want to create a “mouseover effect”
with 2 pictures like every idiot does it for html.

jsui is not an option in 4.1 and it is too slow anyway.

in [lcd] it is very slow and make troubadour when
you start to place other GUI stuff over it (which
i might need to do.)

-110 on coffeeeeinn

#25482
Apr 18, 2006 at 4:38pm

Roman Thilenius wrote:
> 2.
> can track mouse position relative to the patcher
> window (mousestate uses the monitor)

I don’t know if mousestate of 4.1 knows the mode message, but if it does
this should work….

max v2;
#N vpatcher 20 74 620 474;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P hidden message 172 46 54 196617 mode 2;
#P hidden message 150 46 19 196617 1;
#P hidden newex 150 24 64 196617 loadbang;
#P hidden newex 193 289 50 196617 sel 1 0;
#P hidden newex 193 266 50 196617 change;
#P hidden newex 193 245 75 196617 &&;
#P hidden newex 300 213 21 196617 t 0;
#P hidden newex 258 213 21 196617 t 1;
#P hidden newex 235 213 21 196617 t 0;
#P hidden newex 193 213 21 196617 t 1;
#P hidden newex 258 168 50 196617 – 101;
#P hidden newex 193 168 50 196617 – 61;
#P hidden toggle 93 30 15 0;
#P hidden newex 93 67 59 196617 metro 100;
#P hidden newex 258 192 52 196617 split 0 45;
#P hidden newex 193 192 52 196617 split 0 85;
#P hidden newex 172 67 94 196617 mousestate;
#P comment 68 118 74 196617 move over me;
#P hidden message 60 240 50 196617 shadow 5;
#P hidden message 60 222 55 196617 shadow -4;
#P user panel 60 101 85 45;
#X brgb 180 100 220;
#X frgb 0 0 0;
#X border 1;
#X rounded 20;
#X shadow 5;
#X done;
#P hidden connect 1 0 0 0;
#P hidden connect 2 0 0 0;
#P hidden connect 17 0 1 0;
#P hidden connect 17 1 2 0;
#P hidden connect 19 0 8 0;
#P hidden connect 8 0 7 0;
#P hidden connect 18 0 19 0;
#P hidden fasten 18 0 20 0 155 43 177 43;
#P hidden connect 20 0 4 0;
#P hidden connect 7 0 4 0;
#P hidden connect 4 1 9 0;
#P hidden connect 9 0 5 0;
#P hidden connect 5 0 11 0;
#P hidden connect 11 0 15 0;
#P hidden connect 12 0 15 0;
#P hidden connect 15 0 16 0;
#P hidden connect 16 0 17 0;
#P hidden connect 5 1 12 0;
#P hidden connect 4 2 10 0;
#P hidden connect 10 0 6 0;
#P hidden connect 6 0 13 0;
#P hidden connect 13 0 15 1;
#P hidden connect 14 0 15 1;
#P hidden connect 6 1 14 0;
#P pop;

[][] [][][] [][] [][][]
[][][][][][][][][][][][][][][]

Stefan Tiedje
Klanggestalter
Electronic Composition
&
Improvisation

/~~~~~
\ /|() ()|
))))) )| | |( \
/// _/)/ )))))
___/ ///

————————-x—-
–_____———–|———–
–(_|_ —-|—–|—–()—-
– _|_)—-|—–()———–
———-()————x—–

14, Av. Pr. Franklin Roosevelt,
94320 Thiais, France
Phone at CCMIX +33-1-57 42 91 09

#75095
Apr 19, 2006 at 11:10am

On 18 avr. 06, at 18:38, Stefan Tiedje wrote:

> Roman Thilenius wrote:
>> 2. can track mouse position relative to the patcher window
>> (mousestate uses the monitor)
>
> I don’t know if mousestate of 4.1 knows the mode message, but if it
> does this should work….

No, it doesn’t (it arrives with 4.5.4). So you have to ask
thispatcher for the window position.

Best,
ej

#P window setfont “Sans Serif” 9.;
#P number 148 285 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 109 285 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 148 248 27 196617 -;
#P newex 109 248 27 196617 -;
#P newex 291 143 76 196617 unpack 0 0 0 0;
#P message 70 105 24 196617 poll;
#P newex 291 121 55 196617 route size;
#P newex 291 99 71 196617 route window;
#P message 291 55 79 196617 window getsize;
#N thispatcher;
#Q end;
#P newobj 291 77 61 196617 thispatcher;
#P newex 70 143 167 196617 mousestate;
#P connect 8 0 10 0;
#P connect 7 0 9 0;
#P connect 6 1 8 1;
#P connect 0 2 8 0;
#P connect 6 0 7 1;
#P connect 4 0 6 0;
#P connect 0 1 7 0;
#P connect 5 0 0 0;
#P connect 3 0 4 0;
#P connect 1 0 3 0;
#P connect 2 0 1 0;
#P window clipboard copycount 11;

#75096
Apr 19, 2006 at 2:12pm

You can use the ‘hover’ object by Tim Place, it reports the name of the object it is hovering over… This could easily be used for this purpose….

I’ve used it to make a drag ‘n’ drop filebrowser… using Topher Lafata’s filebrowser.mxj and any named object for dropping the files onto – i.e. waveform

#75097
Apr 19, 2006 at 2:44pm

Quote: spleef wrote on Wed, 19 April 2006 08:12
—————————————————-
> You can use the ‘hover’ object by Tim Place, it reports the name of the object it is hovering over… This could easily be used for this purpose….
>
> I’ve used it to make a drag ‘n’ drop filebrowser… using Topher Lafata’s filebrowser.mxj and any named object for dropping the files onto – i.e. waveform

i hate using third party stuff but this sound
very useful for me i might try it!

hopefully i can turn it off from polling when not needed.

#75098

You must be logged in to reply to this topic.