Jump to content
UBot Underground

Sub Runs without Me Calling it


Recommended Posts

Alright, I'm trying to create user inputs that only appear if certain things are done/checked/filled in.

 

For instance, I created a sub called "enable pop3", and in that sub, the command is "UI Check Box > (name: Enable POP3)"

 

Now, I wanted to create a qualifier to run that sub (and therefore only create that UI element) only if a certain site is selected to create accounts at.

 

But even though I created that "UI Check Box" in a sub that my script ISN'T calling, the check box appears anyway. Any ideas?

Link to post
Share on other sites

Alright, I'm trying to create user inputs that only appear if certain things are done/checked/filled in.

 

For instance, I created a sub called "enable pop3", and in that sub, the command is "UI Check Box > (name: Enable POP3)"

 

Now, I wanted to create a qualifier to run that sub (and therefore only create that UI element) only if a certain site is selected to create accounts at.

 

But even though I created that "UI Check Box" in a sub that my script ISN'T calling, the check box appears anyway. Any ideas?

I don't think Ubot is currently designed to support 'on-the-fly' UI element creation. All UI element nodes are processed when the script loads, not when it's executed, so that's why its showing up regardless of whether or not the sub was called.

Link to post
Share on other sites

Thanks guys, I guess that is the issue. No matter where I store UI creation elements, they always appear immediately. I guess I now have a feature request to make.

 

Didn't test this.

 

But maybe try to put the code into another file and include that file which loads the UI based on your parameters.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...