Max to work in background alongside python script

R_Gol's icon

I'm using alongside max patches a python code that takes data from zyntonic screen sensor into max msp. each time I press something inside the max patch it will go out from the python script so I manually need to bring it to front after pressing what I need in max.

I am using two monitors.

Is there any way max will work and be display on one monitor while the python script will run on the other monitor without being interapted each time I touch the max patch?

TFL's icon

Your python script stops when its window is not in focus, is that what you are describing? Why does your Python script need to be in front to be executed?

To me, it seems more of a problem about this script and how you execute it than Max itself.

I know nothing about these zyntonic screen sensors, but I guess you can make them work without having to get a specific window on focus, am I right?

R_Gol's icon

To me, it seems more of a problem about this script and how you execute it than Max itself.

I think you are right..

I know nothing about these zyntonic screen sensors, but I guess you can make them work without having to get a specific window on focus, am I right?

The technician I work with told my it is not possible, which sounds strange for me.. I will try to look into it myself.

TFL's icon

In the meantime, you can use a MIDI controller to map to your Max patch, this way you can control it without having the Max window going into focus.

Source Audio's icon

are that zytronic touch screens not USB - HID capable ?

R_Gol's icon

are that zytronic touch screens not USB - HID capable ?


they are connecting to the computer via USB if this what you meant?

Source Audio's icon

USB connection does not mean they are HID compatible.

Why are you allways so sparce with infos ?

It is you that asks for help.

You talk about that stuff since months, post questions,

but to this day no info about model, connection... OS .... nothing

R_Gol's icon
R_Gol's icon

are that zytronic touch screens not USB - HID capable ?


They are

TFL's icon

in the doc it says:

Fully HID compliant “plug-and-play” under Windows, Linux and Android

• Controller output protocol available on request for custom interface applications

So if you're in Windows you might even be able to get the sensors data directly inside of Max using [hid] or the older [hi] if you don't have Max 9.

R_Gol's icon

Fully HID compliant “plug-and-play” under Windows, Linux and Android

• Controller output protocol available on request for custom interface applications

I try to see the device using the hi object but my device did not appeared in the list of the object

Source Audio's icon

look into device manager in windows settings.

If you tried that on windows ...

Source Audio's icon

Just to mention - windows does not allow mouse and keyboards

to be captured using hi object.

That's maybe why that device remains invisible.