Forums > MaxMSP

Accessing Key and Mouse information whilst Max is not the active window


Aug 03 2006 | 1:21 pm

Hi,

I’m looking at making a patch in Max/MSP that will allow music to be created and formed according to the key strokes and mouse movement during a computer game. This would essentially allow computer games to have music that responds to them, rather than the other way round.

The main problem i can see so far is being able to access the key and mouse information whilst in the game i.e. whilst Max is not the active window. Any ideas?

Aug 03 2006 | 9:22 pm

I’m having a similar problem with a similar project! The solution I’m working on is a mod for the game that will hack a udp port into it that will output information about it. It may be worth looking into a similar solution for yourself?
T

Aug 05 2006 | 7:07 pm

On 3-Aug-2006, at 15:21, James Hosker wrote:

> The main problem i can see so far is being able to access the key
> and mouse information whilst in the game i.e. whilst Max is not the
> active window. Any ideas?

ice.key.

Grab keystrokes any time, any place. Up, down, autokey. Max does not
have to be the frontmost app.

For more information see below.

— 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

Aug 11 2006 | 12:42 pm

James Hosker wrote:
> Hi,
>
> The main problem i can see so far is being able to access the key and
> mouse information whilst in the game i.e. whilst Max is not the
> active window. Any ideas?

At least on a Mac the hi object will do it.

Stefan


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

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

Forums > MaxMSP