Forum > Coding >

Help! My lua and lua c wont execute ANYTHING!

Posts: 14

Threads: 11

Joined: May, 2018

Reputation: 0

Posted

My lua and lua c exec wont work with WRD api! please help

  • 0

mrc0d3p14yz

Developer of Rift

Posts: 22

Threads: 5

Joined: Jun, 2018

Reputation: 0

Replied

_mrc0d3p14yz#9737
Add me and I'll help you.
  • 0

Posts: 10

Threads: 4

Joined: Jun, 2018

Reputation: 0

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);)
  • 0

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )