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

Aug 3, 2006 at 1:21pm

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

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?

#27025
Aug 3, 2006 at 9:22pm

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

#81393
Aug 5, 2006 at 7:07pm

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

#81394
Aug 11, 2006 at 12:42pm

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

#81395

You must be logged in to reply to this topic.