[PD-dev] erase object text

yvan volochine yvan.pd at gmail.com
Sat Apr 2 17:38:30 CEST 2011


On 04/01/2011 11:29 PM, yvan volochine wrote:
> On 04/01/2011 10:43 PM, Miller Puckette wrote:
>> Can't be done -- the actual text editing is done in Pd and the TCL
>> code is just to display the current state of affairs down in Pd.
>>
>> There might be a way to do it via messages to Pd though -- for instance,
>> simlulating the necessary mouse/keyboard actions.
>
> ah yes, that works if I simulate a double-click.

it seems that simulating the mouse is a bad idea (focus problems).
how would I go to simulate CTRL-A ??

this does not work:

proc ctrl_all {} {
     ...
     set key "Control_L"
     set a 97

     pdsend "$mytoplevel key 1 $key 0"
     pdsend "$mytoplevel key 1 $a 0"
     pdsend "$mytoplevel key 0 $a 0"
     pdsend "$mytoplevel key 0 $key 0"
}

cheers,
_y



More information about the Pd-dev mailing list