Page 1 of 1

[HELP] Multiple keys pressed at once?

PostPosted: Tue Jan 02, 2018 5:59 pm
by rikintosh
My idea would be to make a program for my younger brother to play, using wav sounds, like a yamaha music keyboard, but I can not press more than one key at the same time, which makes chords impossible, (the longer you press the key, the longer the sound should last) but this does not occur.

I thought "logically" in a loop script that would "detect" all the time if any key was pressed, and if it was, it would play the corresponding sound, and run a second script to detect if any other key was pressed, to make a musical chord


Re: [HELP] Multiple keys pressed at once?

PostPosted: Wed Jan 03, 2018 4:54 pm
by dgilmour
This could be done with a plugin responding to the WM_KEYDOWN and the WM_KEYUP messages, but I'm not sure if such plugin exists.