Posted
My lua and lua c exec wont work with WRD api! please help
Replied
_mrc0d3p14yz#9737
Add me and I'll help you.
Cancel
Post
Replied
Find the textbox design name first. When you put your execute buttons, remember to put api.SendScript (for lua c) and api.SendLimitedLuaScript (for lua). Put a string to change your design name in code to something easier. If the design name of my Button is btnLua, it would be like this:
    private void btnLua_Click(object sender, EventArgs e)
    {
      string script = richTextBox1.Text;
      api.SendLimitedLuaScript(script);
    }
but you'll need to find the textbox you want to execute in's design name. Mine is richTextBox1. When you put the name of the design, put .Text; at the end.
When doing the different executes (lua and lua c) it goes like this:
api.SendLimitedLuaScript(script);
for lua
api.SendScript(script);
for lua c.
Edit the button you want and put a string for your textbox.
then do the code (api.SendScript(script); or api.SendLimitedLuaScript(script);)
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post