Jump to content
UBot Underground

Dillon

Members
  • Content Count

    12
  • Joined

  • Last visited

Posts posted by Dillon

  1. Instead of randomizing the table randomize the order in which you access the cells....meaning that you should prepare a UBot list containing random numbers, which are representing table rows. Once you have that you just loop through a list and pull row numbers from it....

    Perfect, thank you. Got everything working exactly as I needed.

     

    -Dillon

  2. Hey all,

     

    Does anyone know any way at all to randomize a table? I have 2 main pieces of data that need to be used together each loop so I have them in a table and it works great but without being able to randomize the data before use it doesn't really do what I need.

     

    Any suggestions/ideas would be appreciated.

     

    -Dillon

     

     

  3. Try just this:

     

    onChange=\"updateLog()\"

     

    Thanks for the response. Unfortunately that's how I had it as first and how I'd normally write it, I had it the other way after an example of JS being used in the UI HTML Panel. Neither seem to work.

  4. You can use "onChange" event and you tie it to a hidden input with UBot variable. Whenever variable changes that event will be triggered and you can read variable value via JS.

     

    Thank you for you the reply, hearing there's a solution is awesome. I'm having a little trouble getting it to work though, any way you can provide just a quick example?

     

    I figured it could just be:

          function updateLog() \{
    var textarea = document.getElementById(\'tlog\');
    textarea.scrollTop = textarea.scrollHeight;
    \}
    

    Along with the following on the textarea element:

    onChange=\"javascript:updateLog()\"
    

    Doesn't seem to be doing anything so I'm guessing I misunderstood.

     

     

    Thanks,

    Dillon

  5. Is it at all possible to execute JavaScript within a UI HTML Panel? Specifically I am wanting a text box to scroll to bottom every time it gets to the end of a thread. It's a log of what's happened and currently works as adding each new log to a list then making that list a variable. It works "okay" but not great having the logs all going to the bottom when it sits at the top of the box.

     

    I've tried everything I can think of but from what I can find JS can only be executed in that way if used in an onclick that's already in the UI HTML Panel, be great to hear I'm wrong on that though.

     

    Thanks,

    Dillon

  6. Hello.

     

    It depends on what the button is doing. A button that starts a video stream... Not sure what you try to archive here. 

    Because if the goal is to actually see the video, then HTTP post will not help you. Because the Ubot browser is completely separated from the HTTP post commands.

    You of course can load the HTML code you receive via http post/get via load html(#code)  but that's it.

     

    If you describe your overall goal, then we might be able to help you better.

     

    Cheers

    Dan

     

    Appreciate the response. The goal is simply to click the button, nothing more than this. i don't need to see anything, just as long as the page and navigated too and the button clicked. I was hoping to get an understanding of this for a particular project but just also for future reference whenever needed. 

     

    I'm not using the plugin, but usually when you click a button another request is sent, so you need to send that request instead of "clicking the button" (since clicking only works when you load response into browser).

    I do understand the logic behind it but I'm clueless with implementation of this or even where to start. Thank you for the reply nonetheless. :)

  7. i'm not sure about the first part, but post an example of the code your using for the sql. I'll have a look 

     

    I don't actually have my exact code now but it was literally just the connection which I tested as working and a single 'query with results'. http://wiki.ubotstudio.com/wiki/Query_with_Results - I used the exact same syntax as here in the end after doing pretty much the same without having ; and getting an error.

     

    Where are you putting the div you wish to hide html window? html panel?

    I believe most people do the input forms part with php pages

     

    If you are using ubot version 5 with MySQL the problem could be within ubot (I  know I had a query failed in SQLite that works fine in Navicat and ubot version 4 with Aymen database plugin)

     

    Yes the div/s are in a HTML Panel.

     

    I was using 5 but I received 4 after using 5 and found I didn't experience as many strange issues that I couldn't explain so I stuck with it. Haven't tried on 5 at all.

     

    btw, there is a good locking system with encryption and updates already built, its well priced, and good user maintains it.

     

    http://www.ubotstudio.com/forum/index.php?/topic/12958-sell-ubotlocker-web-web-based-licensing-solution-that-prevents-decompiling-and-cracking/

     

    I have actually purchased this earlier today and will be using it in place of this. Just waiting to get my copy.

     

    Appreciate the replies nonetheless :)

  8. I guess it won't actually be clicking since it'd be a HTTP request but in either case I can't seem to find any information that helps me figure out how I can achieve equivalent of clicking a button.

     

    Example of what I am wanting to do: Go webpage with non-autoplaying video and have a HTTP request go there and click the button.

     

    To clarify I am using Aymen's HTTP POST plugin.

     

    Any information would be much appreciated. It may not even be possible in the way I want, I really do not know.

     

    Thanks,

    Dillon

  9. Hey all,

     

    I'm trying to create a simple license verification setup which will work as a div being shown with the login form and then upon entering a username + product key it would check against for it in a MySQL proceeded by hiding the DIV if the details are true and displaying a message if it's not.

     

    I understand how I can do all of this except for the hiding the DIV on success. I know(Or at least assume) JavaScript is needed but I cannot seem to get it to work within the actual bot and only in the browser area which is irrelevant for this and also hidden on all my bots.

     

    This may not the most advanced way of doing things but i'm not aware of any good options.

     

    -------

     

    I have one other small issue, is there certain way queries must be done with UBot? I work with MySQL regularly but cannot seem to get a successful 'query with results'. Get a syntax error time, even with a very basic query.

     

    Thank you in advance for any replies, appreciate it.

×
×
  • Create New...