Forums > MaxMSP

Toggle not changing when focus on jit.pwindow

August 10, 2013 | 2:50 pm

Hi,

I’m trying to change a toggle object by pressing a key but the toggle stops changing as soon as I click on a jit.pwindow object.

See example below: First click on any white area in the patcher and press the space bar. The toggle should change. Then click on the pwindow and press the space bar. The toggle doesn’t change even though the key object is working, as shown by the bang. I’m using Max 6.1.3. I found that the jit.pwindow can even be in a different patcher for this to happen. I need this to work since my project requires to click on a pwindow while triggering events with the keyboard.

Can anyone else reproduce this?

Thanks,

Hector

– Pasted Max Patch, click to expand. –

August 10, 2013 | 2:58 pm

Ah! On further investigation, it seems that the key object is sending duplicated key numbers when the pwindow object is clicked. I confirmed this by attaching a print object to key.


August 12, 2013 | 3:35 pm

hi.
thanks for the report. i can confirm and we’ll take a look as to why this is happening.

in the meantime, your best bet might be to create an abstraction using change and keyup, to filter the duplicates:

– Pasted Max Patch, click to expand. –

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