Jump to content
UBot Underground

Recommended Posts

technically if your building http bots the vast majority of the ubot folder isn't needed. I haven't done enough research to understand what the ui uses. But its a pointless avenue to explore as ubot is fundamentally programmed to use this folder.

  • Like 1
Link to post
Share on other sites
  • Replies 1k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

V2.3.1.0 Version of the test (I tested only preliminary. For people who want to try it). Add C/F: hide border style (this app): by name [http://www.youtube.com/watch?v=Cd88e9hW7r4] hide from taskbar

V2.3.0.0   Chang Name: fixed window size ==> fixed window size this app (Api new solution to "TeamViewer") fixed window size min/max ==> set window size min/max this app (Api new solution to "Te

You can download all versions of the URL that was sent to you via email. (beta version) is ideal for people who like to test the new command.

Posted Images

Issue: Threads counter. Working in V4. Not working correctly in V5.0.10

 

Details:

Amount of threads is not limited to the configured number of 50. 

Looks like the $threads counter monitor is not working correctly.

 

Reproduce:

Run it in V4 first and look at the debugger. 

The run in V5 and look at the debugger as well. Sometimes v5 will crash. 

plugin command("Advanced Ubot.dll", "threads counter", "Reset")
set(#Loops, 1000, "Global")
ui stat monitor("Open Threads:", #threadcount)
ui stat monitor("Total:", $table total rows(&numbers))
clear table(&numbers)
set(#loopcounter, 0, "Global")
loop(#Loops) {
    loop while($comparison($plugin function("Advanced Ubot.dll", "$threads counter monitor", "Total Threads"), ">=", 50)) {
        set(#threadcount, $plugin function("Advanced Ubot.dll", "$threads counter monitor", "Total Threads"), "Global")
        wait(0.1)
    }
    set(#threadcount, $plugin function("Advanced Ubot.dll", "$threads counter monitor", "Total Threads"), "Global")
    plugin command("Advanced Ubot.dll", "threads counter", "Increment")
    testthreads2($random text(50), #loopcounter)
    increment(#loopcounter)
}
set(#threadcount, $plugin function("Advanced Ubot.dll", "$threads counter monitor", "Total Threads"), "Global")
loop while($comparison(#threadcount, ">", 0)) {
    set(#threadcount, $plugin function("Advanced Ubot.dll", "$threads counter monitor", "Total Threads"), "Global")
    wait(0.5)
}
set(#threadcount, $plugin function("Advanced Ubot.dll", "$threads counter monitor", "Total Threads"), "Global")
stop script
define testthreads2(#number, #rownumber) {
    thread {
        wait(0.5)
        set table cell(&numbers, #rownumber, 0, #number)
        plugin command("Advanced Ubot.dll", "threads counter", "Decrement")
    }
}

Link to post
Share on other sites

"$threads control monitor" Designed to be used with the command "loop while" directly.

plugin command("Advanced Ubot.dll", "threads counter", "Reset")
set(#Loops, 1000, "Global")
ui stat monitor("Open Threads:", $plugin function("Advanced Ubot.dll", "$threads counter monitor", "Total Threads"))
ui stat monitor("Total:", $table total rows(&numbers))
clear table(&numbers)
set(#loopcounter, 0, "Global")
loop(#Loops) {
    loop while($plugin function("Advanced Ubot.dll", "$threads counter monitor", "Threads >= 50")) {
        wait(0.1)
    }
    plugin command("Advanced Ubot.dll", "threads counter", "Increment")
    testthreads2($random text(50), #loopcounter)
    increment(#loopcounter)
}
loop while($plugin function("Advanced Ubot.dll", "$threads counter monitor", "Threads > 0")) {
    wait(0.5)
}
stop script
define testthreads2(#number, #rownumber) {
    thread {
        wait(0.5)
        set table cell(&numbers, #rownumber, 0, #number)
        plugin command("Advanced Ubot.dll", "threads counter", "Decrement")
    }
}

Link to post
Share on other sites

Awesome Pash. Thanks a lot for that quick fix. 

Using the variable was my second test after the direct one didn't work.

 

 

But it should work with my variable example as well right?

 

May I ask what the error was with v5?

 

Dan

Link to post
Share on other sites

Awesome Pash. Thanks a lot for that quick fix. 

Using the variable was my second test after the direct one didn't work.

 

 

But it should work with my variable example as well right?

 

May I ask what the error was with v5?

 

Dan

Your work correctly.

Link to post
Share on other sites

Thanks for updating the threads counter, Pash! Is the code different for V5? What did you need to change?

Link to post
Share on other sites

Thanks for updating the threads counter, Pash! Is the code different for V5? What did you need to change?

Nothing different

I updated my plugin for counting speed only.

Link to post
Share on other sites

Little glitch:

"Advanced Dialog.dll""$text box dialog",

 

it's adding an additional Line Feed at the end of the text.  zzzz1 is the variable before and zzzz2 after the text box dialog. Without changing anything.

 

x111.JPG

 

Cheers

Dan

Link to post
Share on other sites

Little glitch:

"Advanced Dialog.dll""$text box dialog",

 

it's adding an additional Line Feed at the end of the text.  zzzz1 is the variable before and zzzz2 after the text box dialog. Without changing anything.

 

x111.JPG

 

Cheers

Dan

Do you have an example code?

Link to post
Share on other sites

Little glitch:

"Advanced Dialog.dll""$text box dialog",

 

it's adding an additional Line Feed at the end of the text.  zzzz1 is the variable before and zzzz2 after the text box dialog. Without changing anything.

 

x111.JPG

 

Cheers

Dan

Oh yeah, I forgot to report that, but I experienced it myself. I'm using the trim function to fix it.

Link to post
Share on other sites

Sure:

 

set(#zzz1"Test Text""Global")
set(#zzz2$plugin function("Advanced Dialog.dll""$text box dialog""Test"#zzz1"False""False""True""True""True", 600, 200, "False""FFF3F3F3""FFBEEAC4,000000""FFF3C1C1,000000""FF778ABD,000000""Center App"), "Global")

 

 

You will see it in the debugger.

 

Dan

Link to post
Share on other sites

Don't change anything in the dialog. Just run it and hit OK. Don't change the text.

 

You also have an additional line feed in your example. When you look at the right debugger window. Where you have the second variable selected.

 

Dan

Link to post
Share on other sites

Don't change anything in the dialog. Just run it and hit OK. Don't change the text.

 

You also have an additional line feed in your example. When you look at the right debugger window. Where you have the second variable selected.

 

Dan

 

You want to "trim" it?

Link to post
Share on other sites

You want to "trim" it?

 

When I don't change the text in the dialog. It should stay exactly the same. But that's not happening. There is an additional LF at the end.

 

 

Reproduce:

1. Run script

2. Hit OK (nothing else)

3. I want to see "Perfect! Correct!"

 

 

set(#zzz1"Test Text""Global")

set(#zzz2$plugin function("Advanced Dialog.dll""$text box dialog""Test"#zzz1"False""False""True""True""True", 600, 200, "False""FFF3F3F3""FFBEEAC4,000000""FFF3C1C1,000000""FF778ABD,000000""Center App"), "Global")

if($comparison(#zzz1"="#zzz2)) {

    then {

        alert("Perfect! Correct!")

    }

    else {

        alert("WRONG!!")

    }

}

Link to post
Share on other sites

It should not do a TRIM automatically! Because if I add a space or enter (LF) into the dialog, I want that to be in the variable.

 

But if I don't enter or change anything, I want the variable to be 100% identical to the input variable.

 

Dan

Link to post
Share on other sites

It should not do a TRIM automatically! Because if I add a space or enter (LF) into the dialog, I want that to be in the variable.

 

But if I don't enter or change anything, I want the variable to be 100% identical to the input variable.

 

Dan

I solved this problem with a new version.

Please download and test it.

Link to post
Share on other sites

V2.3.0.4

 

Fix:

 

Fix not work on ubot5

  • disable menu strip
  • disable powered by
  • disable title bar
  • fixed window size this app
  • set window size min/max this app

 

Add Option:

 

Add "Ubot Studio Version" (Choose what version is running Ubot)

  • disable menu strip
  • disable powered by
  • disable title bar
  • fixed window size this app
  • set window size min/max this app
Link to post
Share on other sites

Help for

 

  •     disable menu strip
  •     disable powered by
  •     disable title bar
  •     fixed window size this app
  •     set window size min/max this app

 

Link to post
Share on other sites
  • PRO locked this topic
Guest
This topic is now closed to further replies.

×
×
  • Create New...