how to define a certain key on the keyboard?

Oct 18, 2006 at 9:05pm

how to define a certain key on the keyboard?

I forget how to define a key to be a switch, for example, I want the “space” to be the switch instead of the mouse.

can somebody tell?

Many Thanks!

#28243
Oct 18, 2006 at 9:24pm

#86542
Oct 18, 2006 at 9:25pm

i’m assuming that by “be a switch” you mean to switch the state of a toggle box, for example…
correct me if i am wrong.

key
->
sel # (test this out w/ a numbox if necessary)
->
toggle

jl

#86543
Oct 18, 2006 at 9:30pm

#86544
Oct 18, 2006 at 11:31pm

Lucky Forest,
Is this what you wanna do?

max v2;
#N vpatcher 10 59 311 235;
#P toggle 82 104 15 0;
#P window setfont “Sans Serif” 9.;
#P number 17 66 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222
0 0 0;
#P window linecount 1;
#P newex 80 34 41 196617 key 32;
#P connect 0 0 1 0;
#P connect 0 0 2 0;
#P pop;

-chuck

Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around

http://mail.yahoo.com

#86545
Oct 19, 2006 at 12:17am

you can use the following abstraction to select a key based on the abstractions argument.

#P window setfont “MS Sans Serif” 10.;
#P window linecount 1;
#P newex 89 44 68 8585226 loadmess $1;
#P newex 37 110 40 8585228 key;
#P newex 89 110 27 8585228 i;
#P outlet 37 161 15 0;
#P newex 37 135 62 8585228 select;
#P newex 89 87 40 8585228 atoi;
#P connect 5 0 0 0;
#P connect 3 0 1 1;
#P connect 0 0 3 0;
#P connect 1 0 2 0;
#P connect 4 0 1 0;
#P window clipboard copycount 6;

#86546
Oct 19, 2006 at 6:22am

Thank you. but how to convert the code below you gave into maxmsp patch?

Quote: DrSbaitso wrote on Thu, 19 October 2006 08:17
—————————————————-
> you can use the following abstraction to select a key based on the abstractions argument.
>
> #P window setfont “MS Sans Serif” 10.;
> #P window linecount 1;
> #P newex 89 44 68 8585226 loadmess $1;
> #P newex 37 110 40 8585228 key;
> #P newex 89 110 27 8585228 i;
> #P outlet 37 161 15 0;
> #P newex 37 135 62 8585228 select;
> #P newex 89 87 40 8585228 atoi;
> #P connect 5 0 0 0;
> #P connect 3 0 1 1;
> #P connect 0 0 3 0;
> #P connect 1 0 2 0;
> #P connect 4 0 1 0;
> #P window clipboard copycount 6;
>
—————————————————-

#86547
Oct 19, 2006 at 9:30pm

luckyforest wrote:
> Thank you. but how to convert the code below you gave into maxmsp
> patch?

You are so new to Max, that I am certain you do have a version later
than 4.5.5:

Copy the text part from the e-mail, switch to Max, go through all the
menus and search for somthing which would make you think: “that might
work” then try, if it doesn’t, search on, you’ll find it…
(if you have an older version it would not work, the upgrade from 4.5 is
free…)

In general I’d suggest to try harder. Beside searching the menus, you
can search the documentation. Wait at least 30 minutes before you post a
question (try to find the solution within that time), especially the
other question you sent regarding a standard key on the keyboard, make
me believe you are very new to computers in general. Most things will
fold up if you try hard and its MUCH, MUCH MORE FUN to find out yourself
than getting an answer from the list. And what you learn by finding the
solution yourself, will remain longer in your memory as well…

You are welcome, have FUN with Max…

Stefan


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

#86548
Oct 22, 2006 at 1:04am

Hello, please see my additional main post / patch about getting keyboard information. Hopefully it will be useful to anyone wanting to use the keyboard (either key down, key up, or both) information….. pretty much every key is represented, and easily understood.

Enjoy!

-CJ

#86549

You must be logged in to reply to this topic.