Destroy666
Member
Is that currently still not possible? E.g. using a QMessageBox with some text.
obs_queue_task(OBS_TASK_UI, yourFunctionShowingPopup, ...)
when you say Warmuptill already implemented in Advanced Scene Switcher can you elaborate? I am using AdvSS just for its websocket trigger and sending a custom message from outside to it and then having AdvSS get the message and dump the message in a text source and fire a hotkey that calls my Lua script so I can act on it. What I'd like to do now is throw up a dialog box if any error occurs in those scripts. I'm assuming the code above can only be used in C++ or can I use it from Lua to popup a dialog. If only in C++, did Warmuptill put something in AdvSS that I could use as an action to popup a dialog? I did not see any kind of dialog popop action. Any other idea would be appreciated as well (I thought about writing a file with the error as an html file then opening that in interact mode but that seems really hacky).The trick here is to use undocumentedto ensure the function runs with next UI thread - credits to Warmuptill who already utilized it in Advanced Scene Switcher.Code:obs_queue_task(OBS_TASK_UI, yourFunctionShowingPopup, ...)
when you say Warmuptill already implemented in Advanced Scene Switcher can you elaborate? I am using AdvSS just for its websocket trigger and sending a custom message from outside to it and then having AdvSS get the message and dump the message in a text source and fire a hotkey that calls my Lua script so I can act on it. What I'd like to do now is throw up a dialog box if any error occurs in those scripts. I'm assuming the code above can only be used in C++ or can I use it from Lua to popup a dialog. If only in C++, did Warmuptill put something in AdvSS that I could use as an action to popup a dialog? I did not see any kind of dialog popop action. Any other idea would be appreciated as well (I thought about writing a file with the error as an html file then opening that in interact mode but that seems really hacky).