Using arguments in a subpatch window’s title bar

Firmus's icon

In a project I have made with Max 4.6, I used a patcher message box to change the title of a subpatch window displaying graphics. All those graphics were numbered and indentified by their respective number in the title bar. In Max 4.6, the text needed in the message box to automatically change the window title, with an argument in it, was simple:

[patcher Exercise # $1]

Despite the fact that quotation marks seem to be needed before and after the new title in a patcher message box in Max5, the use of an argument in the title doesn’t seem to work anymore. Is there another way to accomplish this in Max5?

Thanks in advance.

fairesigneaumachiniste's icon

Like this:

Max Patch
Copy patch and select New From Clipboard in Max.

You will obviously need to make some modifications for variable lengths of arguments etc...

fairesigneaumachiniste's icon

Maybe I misunderstood the question. Does this help either?

Max Patch
Copy patch and select New From Clipboard in Max.

Firmus's icon

Thank you very much for you help!
Your second patch does exactly what I was looking for.