Jump to content
UBot Underground

How Run UBotStudio Command within Plugin


Recommended Posts

Hello - can anyone tell me how to execute a UBotStudio builtin command from within a .NET plugin script?

 

From within my .NET plugin commands custom "Execute" method, by referencing the instance of the IUBotStudio parm I can do things like "SetVariable" in UBotStudio with no problem.

 

But, how would I execute a buitin UBotStudio command like "change proxy", or "navigate", or "clear cookies" for example?  Does not seem to be immediately obvious...

 

Thanks

Link to post
Share on other sites
  • 2 weeks later...

So....

 

Can anyone tell me why this does not stop UBot script execution, when run within the Execute method of a custom Plugin command?

 

ubotStudio.RunScript("stop script")

 

Is there another way to terminated UBot script execution from within a Plugin?

 

Thanks!

Link to post
Share on other sites

FYI, from UBot Support:

 

"When you use runscript it creates a new script and runs it, so when you run 'stop script' it's stopping the script you created with the runscript command."

 

So, basically, the answer is that there is not a way to "stop" UBot project script execution from within am external plugin command.

 

I could raise an exception, and that would terminate the script - but I don't want to trip exception handling.  Oh well.

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...