Jump to content
  • 0

Help me with a thing


Affann

Question

Posted

So basically I have a script where it searches for a value and it successfully finds it. Now I want that, that value should be edited using text box and that is done but the problem is when I edit the value with textbox, the script doesnt search for value i put in textbox and it searches for the old value, how do i fix this?

 

HERE I am asking for a function which like saves the value of textbox when I input so it can be used to turn off

6 answers to this question

Recommended Posts

  • Administrators
Posted

Use gg.prompt. Store user value in variable. Search value from this variable.

Look for example in other uploaded scripts. Like string search, for example.

Posted
20 minutes ago, Enyby said:

Use gg.prompt. Store user value in variable. Search value from this variable.

Look for example in other uploaded scripts. Like string search, for example.

All is working now, but whenever I go into the function and do nothing and click back button or cancel button, it shows some error.

Screenshot_20190601-161741_Chrome.jpg

 

And for e.g I search some value, i get a value. I want to store that value as variable. Is it possible?

  • Administrators
Posted

When you cancel the dialog p = nil. You must handle this situation separately.

 

Learn Lua to understand what it is about.

Posted
1 minute ago, Enyby said:

When you cancel the dialog p = nil. You must handle this situation separately.

 

Learn Lua to understand what it is about.

And is it possible to store search result as a variable? I searched but I couldn't find anything.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.