Search found 78 matches
- Wed May 08, 2024 2:04 am
- Forum: Scripting
- Topic: MOHO.UpdateTable
- Replies: 7
- Views: 639
Re: MOHO.UpdateTable
Well, I'm little bit confused about it, would you please show me a working useful example?
- Tue May 07, 2024 10:38 am
- Forum: Scripting
- Topic: MOHO.UpdateTable
- Replies: 7
- Views: 639
MOHO.UpdateTable
Please someone explain what is MOHO.UpdateTable?
- Tue May 07, 2024 1:53 am
- Forum: Scripting
- Topic: DoLayout event
- Replies: 17
- Views: 1495
- Tue May 07, 2024 1:51 am
- Forum: Scripting
- Topic: DoLayout event
- Replies: 17
- Views: 1495
Re: DoLayout event
I don't want to iterate over ALL layers, I need a function to find first match and exit the loop.
- Mon May 06, 2024 11:13 pm
- Forum: Scripting
- Topic: DoLayout event
- Replies: 17
- Views: 1495
Re: DoLayout event
So we should iterate over document layers and check the layer type? (find the first?) any example?
- Mon May 06, 2024 7:26 pm
- Forum: Scripting
- Topic: DoLayout event
- Replies: 17
- Views: 1495
Re: DoLayout event
Your code actually works, except for group layer, so I changed the code to support that as well. Note that I added some flag to prevent fire UpdateWidget and DoLayout couple times. Please have a look: -- ************************************************** -- General information about this script -- *...
- Mon May 06, 2024 3:46 pm
- Forum: Scripting
- Topic: DoLayout event
- Replies: 17
- Views: 1495
Re: DoLayout event
This is a test case with your code, you can see which events will be fired: -- ************************************************** -- General information about this script -- ************************************************** ScriptName = "TestScript" TestScript = {} function TestScript:Nam...
- Mon May 06, 2024 3:33 pm
- Forum: Scripting
- Topic: Save/Load Preferences
- Replies: 2
- Views: 415
Re: Save/Load Preferences
You right, now works correctly, Thanks!
Code: Select all
function TestScript:HandleMessage(moho, view, msg)
if msg == self.BOOLEAN_1 then
print('Message BOOLEAN_1 received')
TestScript.boolean1 = TestScript.boolean1Checkbox:Value()
else
end
end
- Mon May 06, 2024 3:26 pm
- Forum: Scripting
- Topic: DoLayout event
- Replies: 17
- Views: 1495
Re: DoLayout event
Well, your code will not fire DoLayout function for me.
- Mon May 06, 2024 3:06 pm
- Forum: Scripting
- Topic: Save/Load Preferences
- Replies: 2
- Views: 415
Save/Load Preferences
I just implemented a simple save/load preferences functionality, but it seems dosn't work: -- ************************************************** -- General information about this script -- ************************************************** ScriptName = "TestScript" TestScript = {} function...
- Mon May 06, 2024 12:36 pm
- Forum: Scripting
- Topic: DoLayout event
- Replies: 17
- Views: 1495
Re: DoLayout event
So we don't have any standard way of calling DoLayout function?
- Sun May 05, 2024 11:46 pm
- Forum: Scripting
- Topic: moho:UpdateUI()
- Replies: 4
- Views: 568
Re: moho:UpdateUI()
brilliant! Thank You so much!
- Sun May 05, 2024 11:17 pm
- Forum: Scripting
- Topic: moho:UpdateUI()
- Replies: 4
- Views: 568
Re: moho:UpdateUI()
NO, just a simple example that shows the problem: -- ************************************************** -- General information about this script -- ************************************************** ScriptName = "TestScript" TestScript = {} function TestScript:Name() return 'Name' end func...
- Sun May 05, 2024 10:08 pm
- Forum: Scripting
- Topic: moho:UpdateUI()
- Replies: 4
- Views: 568
moho:UpdateUI()
anyone knows why moho:UpdateUI() cause crash in dialog?
Re: LuaSocket
Your solution works great!
My idea is to create an external app to cominucate with Moho using localhost, do you think it works?
My idea is to create an external app to cominucate with Moho using localhost, do you think it works?