LOM live_app propertie: current_dialog_button_count
LOM live_app propertie: current_dialog_button_count
It is stated in the LOM: Description "The number of buttons in the current message box".
This summary raises a lot of questions as the explanation of the property is ridiculously poor in explanations.
My question is: what should be the function of these button objects in the patch?
Thank you for your help.
This summary raises a lot of questions as the explanation of the property is ridiculously poor in explanations.
My question is: what should be the function of these button objects in the patch?
Thank you for your help.
-
- Posts: 6203
- Joined: Mon May 15, 2006 12:15 pm
Re: LOM live_app propertie: current_dialog_button_count
It refers to a pop up window in live, like « do you want to save before quitting » ?
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1
MacStudio M1Max 32Go OS 12.3.1
Re: LOM live_app propertie: current_dialog_button_count
I never got this working. Did you?
'get open_dialog_count' works, but 'get current_dialog_message'and 'get current_dialog_button_count'don't.
'get open_dialog_count' works, but 'get current_dialog_message'and 'get current_dialog_button_count'don't.
-
- Posts: 6203
- Joined: Mon May 15, 2006 12:15 pm
Re: LOM live_app propertie: current_dialog_button_count
I never encountered a problem, and it's been crucial for my live performances for many years :
https://maxforlive.com/library/device/4153/do-not-save
https://maxforlive.com/library/device/4153/do-not-save
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1
MacStudio M1Max 32Go OS 12.3.1
Re: LOM live_app propertie: current_dialog_button_count
question from a complete beginner: ultimately what is a "button" in the message boxes to which the tutorial refers?
I looked in the message object help, but it doesn't mention a "button"?
I looked in the message object help, but it doesn't mention a "button"?
Re: LOM live_app propertie: current_dialog_button_count
Buttons in a dialog window, like OK, Cancel, Save. For example, if you close Live you are asked if you want to save the project, you get a dialog window with three options. Those three are the buttons.
Instead of letting the user click the button, you can do it by using the Max function:
Code: Select all
call press_current_dialog_button #
Last edited by Rivanni on Fri Jan 10, 2025 2:58 pm, edited 1 time in total.
Re: LOM live_app propertie: current_dialog_button_count
I made you a simple device, that shows how things work.
Copy the code below.
Open an empty Max Audio Effect, delete everything inside it, and paste the code in the leftmost top. This way, you will see the most crucial part of the patch in Live.
Save and close the Max device.
In Live, go to the track where the device is located, select the track header, and then choose 'Save as default track.'
The observer keeps track of any open dialog window, as indicated by the toggle.
If this is the case, two messages are sent. One is to get the dialog's text message, and the other is to get the number of buttons (which isn't used in this demo).
If the second word in the dialog's message is 'default', the first button (Cancel) is pressed after 5 seconds.
If you use a language other than English, you might need another word to check for the correct dialog.
The order/layout of buttons may vary between macOS and Windows.
I hope this gets you started.
Code: Select all
<pre><code>
----------begin_max5_patcher----------
1972.3oc2Z0rjiZCD9r8SAEW1KdcIIjDnbKOCopbYqTtvXMdHACt.YmY1s17
rG8CfQXvfWvY7l4fYPH0s5O0p+Qp+1xEtaydiW357KNewYwhusbwBcSpFVT9
9B2CguEkDVn6laJ+uy19mtqLeRveSnatfm3ri+R3oDQ02NFJhdMNc+lbdjvv
BeJdMXkCgn9kRU+h.qAN+Q4PdIKUjFdfqI4ulGGlTQrrShDtP79QtgRtaCS2
6txw0sdvw6zCSN69LjE31fjEweUOLnjWkMmd5PbpjhZgBcoQCeLspZ76KWp9
Y0zPmulrNU7pCZXnAFnAHvTfl9gEe3SErrSpzP..vvvBCogE+IqwzIrPHSGV
f+.vxAdQQ3d9U3RTXRhywb4W2DcJOmmJ1rSJYY62r8jPjk5LBDChX5GT3cfY
Eh2SLMmeNse8qNAQZvSAH1Ah3wzVZf.MvfISZuU2JPrOFYOJ6vAo1wUJP72B
ObLg67RVti3Utym9svybmvhJSzNh7vn+5SNFsp0UiOINkGkcJUSDuJ.UpGJ4
QnHNKcS283ZHmhMXMz.75G3lPtkwZO2tfIXmvTEhVHkncaBEh7X4lB9k+qnD
uJALIDdZ61D9FEMzy9jr7ptT0mERDSueSJi54kDzNX555j3y7MQxk07rjMur
20LB4ZTI4Uf9rQzkWdbmpBhr86St0t.HVaCkoMKfvU+VuhD8JO5u36pEku3.
VyBvdPOeDAy.PFckro.4SfeU6DUS.BfE.7XHHgFP8jK3M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Xnwtj5kot54OJGLrYQ+mMN7hbEuLIUEd73Y0YyY5tlMxLS+SS0UvV
oeMN07pN6M2b943p9quEQ2vbYVoBYJomxMYP9V4sc6dHSpTjdJtTuPWOJlLM
akHWcNo0G4gaUgZZI+gQQ7TgU4ef7aT+GHUodTUjGHerpnOTMQZTfH.+.6p+
X6dKBBuLTU8hrZjMYSwWhSRrJ3lpiBMLcuIOas9luuOziPwXlOMfTUsNgmDY
6yC2EyM0vTchyKbsE8UM9oA+K6Fbj8CUK4PoyVcAz.kYKUJmXrLYoVCScUHY
4UJYJDu9KhZtR.XFAtxrDgnvFCWTyRcs4vHW9V0QM3VC.KaVJStQIbo9lU8+
b8hy3ZpQYE0jdDhUWU8jdc8DYStVq+7cwB04zzRyxCPBBPdDDCKgZMPOllrn
bB+v7uCn4wBIMY7677cgogtVeu5Xb9hcbWIYpBx5AHoERQMRohYuXispiKcw
dYQD8hC9x6XePKBaUKbJZp6zEhzSAjQZBeXudn4l3Tk8T9DUNgWbBspzefpX
ItbHckFIOHsPFW4xuo+ilFTqNNtQaR0qB4LfhFQuRGq4DVFw2+SLoN8YZaiu
yFE+oxLcY8r1ROnTYx9Qi03tKB1YZO5i2yAxpPT0SRhm0e54skjLNOGc.b+D
5UX.onNlWqAQYMsFgWMxlF1URvEEEEJzmJkUmZMiKdOUD9l9huCyskUlklHr
mnHXsWR5g55qU2h93fl93LaHttIVC2fRfoS5KSP3pI+0kTsOzZKn1mPaGucS
bIzaS71yow0zGmK7ILeueW3lzxz2LnZuWwwPS9d5KPb42W9u.YaokiA
-----------end_max5_patcher-----------
</code></pre>
-
- Posts: 6203
- Joined: Mon May 15, 2006 12:15 pm
Re: LOM live_app propertie: current_dialog_button_count
@derf07
What are you trying to achieve ? That’s the main question after all.
What are you trying to achieve ? That’s the main question after all.
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1
MacStudio M1Max 32Go OS 12.3.1