[PD] generatiing a keypress

Patrice Colet pat at mamalala.org
Sat Dec 15 23:44:25 CET 2007


jim ruxton a écrit :
> 
>>
>>
>> On Sat, 2007-12-15 at 02:14 -0500, jim wrote:
>>> I know about the PD commands that detect keypress but is there a command 
>>> that generates a keypress. I wanted to send commands to another program and 
>>> it would be nice if PD could do that by mimicking a keyboard.
>>> Thanks,
>>> Jim. 
>>
>> hi jim
>>
>> what os are you on? in pd-cvs in externals/aalex you'll find x11key,
>> which does exactly that. afaik, it is _not_ included in pd-extended. it
>> does only work on linux, though (hm.. at least it seems to need the x
>> window system).
>>
>> roman
> 
> Thanks Roman,
> I'm working on  Linux and sometimes forced to use Windows so I would be
> looking for a solution in both. I'll have a look at aalex. Anyone know
> of a Windows solution?
> Jim 

  With VkKeyScan() function

http://msdn2.microsoft.com/en-us/library/ms646329.aspx




More information about the Pd-list mailing list