[PD] generatiing a keypress
Patrice Colet
pat at mamalala.org
Tue Dec 18 18:41:13 CET 2007
jim ruxton a écrit :
> Tried the external you sent Patrice. Thanks it works great. Thinking if
> I have a chance some time I'll add the code so you can just send an
> ascii character into it. I think I saw a window function that converts a
> character to the code your external takes. Anyway as it stands now its
> great so thanks a lot : )
> Jim
I am happy that this satisfies your need, it's my first external, this
topic was a good enough for making a try.
In the other external I've called [keystroke], it fixes a major bug
found in the other one I've called [winkey] that could crash the
machine, and there is some documentation inside keystroke-help.pd about
the relationship between the number to enter and the correponding key.
You can also get this in msdn site.
The numbers doesn't always correspond with the good keys, could you
help me about this, and give me which numbers are working with your
windows version?
Maybe it would have been better to use SendInput() rather than
kbd_event(), but I haven't been able to figure out how to use the first.
We hope to make soon a cross-platform external, but keeping the number
option for the windows version should be handy. I'm just wondering if
the arguments for the objects should be the same on all platforms (lot
of work), or different arguments following the API (it seem simple to do).
More information about the Pd-list
mailing list