Selon Hans-Christoph Steiner <[email protected]>:

> sys_gui.c.  That code is pretty simple. I think you could do it by
> appending something like "; pdsend "#sys_gui-receiver bang" to every
> command sent, then bind to the receiver name "#sys_gui-receiver" to
> get that bang.

 attached diff should be this binding method but it doesn't work, the bang is
sent
before tcl is done; why attached patch works? (it bangs after tcl command is
done), the only difference is that the send command is trigged.

pc

Attachment: sys_gui-send-bang.diff
Description: Binary data

#N canvas 0 0 450 300 12;
#X obj 191 50 getdir;
#X obj 191 10 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 223 134 sys_gui;
#X obj 191 74 t a a;
#X msg 223 104 file mkdir \$1/test-folder;
#X obj 190 347 textfile;
#X obj 190 297 symbol;
#X msg 190 323 write \$1/test-folder/MyFile.txt;
#X msg 42 214 add pif paf pouf \;;
#X obj 191 202 sys_gui;
#X msg 191 175 pdsend "test \$1" \;;
#X obj 190 263 r test;
#X connect 0 0 3 0;
#X connect 1 0 0 0;
#X connect 3 0 10 0;
#X connect 3 1 4 0;
#X connect 4 0 2 0;
#X connect 6 0 7 0;
#X connect 7 0 5 0;
#X connect 8 0 5 0;
#X connect 10 0 9 0;
#X connect 11 0 6 0;
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to