-
Content Count
47 -
Joined
-
Last visited
Posts posted by daveconor
-
-
Trying to scrape text that appears between an <address> and </address> but when I use <address>.*</address> it finds the text and duplicates it into another line below. I tested it with another tag "</a>" and it does the same thing, seems like it only duplicates it when I use tags, is it the brackets that throw it off?
thanks in advance
-
I believe this code would create a dynamic table but what I am trying to do is determine the actual name of the list dynamically, not its content. Im getting the feeling its not possible though.
-
We are in need of a uBot developer, must be at least intermediate level (beginners please do not waste my time)
Please send a PM with the following details:
- Skype ID
- Experience with uBot (years/months)
- Rate / Hour
- When can you start?
-
Here is what Im trying to do:
add list to list(%GET THE NAME FROM A VARIABLE, $plugin function("TableCommands.dll", "$list from table", &data, "Column", #column number), "Don\'t Delete", "Global")
Why:
I want to create 10 lists from 1 CSV file but there are certain commands I use on all columns:
Add list to list
set lists position
clear list
the set variable to the first list item
If I could choose the name of the list from a variable that would be set from another list I could then just loop everything
Im open to ideas, thanks
-
Trying to figure out how to increment ex:
35.66
to
35.67
Thanks, hope I'm not asking much
-
I would really love to get an experts opinion on my previous post of dividing the entire code into IFs
NOT Nested, nothing in between them.
If - then
if - then
if - then
if -then
and if one fails, the rest will fall like dominos and the thread will close in a second.
-
What about
thread {
in new browser {
navigate("http://www.google.com/", "Don\'t Wait")
wait for element(<id="hplogo">, 10, "Appear")
wait for browser event("Everything Loaded", 10)
if($exists(<id="hplogo">)) {
then {
navigate("http://www.yahoo.com/", "Don\'t Wait")
wait for element(<id="l_logo">, 10, "Appear")
wait for browser event("Everything Loaded", 10)
if($exists(<id="l_logo">)) {
then {
navigate("http://www.google.com/", "Don\'t Wait")
wait for element(<id="hplogo">, 10, "Appear")
wait for browser event("Everything Loaded", 10)
if($exists(<id="hplogo">)) {
then {
navigate("http://www.yahoo.com/", "Don\'t Wait")
wait for element(<id="l_logo">, 10, "Appear")
wait for browser event("Everything Loaded", 10)
if($exists(<id="l_logo">)) {
then {
navigate("http://www.google.com/", "Don\'t Wait")
wait for element(<id="hplogo">, 10, "Appear")
wait for browser event("Everything Loaded", 10)That way the thread will close fairly quick if any one of the IFs fail and they dont have to be nested, am I missing something?
-
I just started multitasking recently and am now trying to figure this out too, other then doing one if find then do else close I cant seem to find anything, but yea, that only gets you past step one like helloinsomnia said unless you put in a ridiculous number of ifs in, any other new ideas?
-
Im trying to have four buttons each controlling the pausing and unpausing of a particular open thread. Here's what I've got so far:
Using 4 threads
Each ui button has a different variable for pause: #pause1, #pause2, #pause3, #pause4
There is a thread counter that assigns each thread a number ( 1 - 4 and then resets back to one ) which is then set locally within the thread, with that I set that thread to work with its corresponding #pause number and button.
if($comparison(#thread number, "=", 1)) {
then {
loop while($comparison(#pause1, "=", "Pause")) {
wait(1)
}
}
}Problem: say I let all 4 threads open completely and now I want to unpause thread #4, well I better not, because at that point the counter is on 4 and if I close 4, the next thread will receive a number value of 1 from the counter thus replacing the thread corresponding with button #1 before I had the chance to complete the first #1 thread in the first place. It only works if I go in order 1,2,3,4,1,2,3... but that's just lame...
I'm pretty sure I'm going about this the wrong way and would LOVE if anyone could shed some light on it.
Thanks
-
I created a new CSV file and still got the extra line, used notepad++ and it was fine. I just don't get why it does that.
Update: used notepad++ to open the CSV file and yea theres the empty line, excel...
-
Should have seen it coming, Doh
But still I wanted to know if else could be removed when not needed which you answered yes, thanks.
-
Thanks for enlightening us on this ubotdev, got a question about IFs, isnt the else part of it mostly redundant, I mean the bot is just going to do the same thing with both examples of code:
if($both($exists(<innertext="Somthing1">), $exists(<innertext="Somthing2">))) {
then {
alert("Tada!")
}
else {alert("Oops")
}
OR
if($both($exists(<innertext="Somthing1">), $exists(<innertext="Somthing2">))) {
then {
alert("Tada!")}
alert("Oops")
and then it would just continue with the next line if both requirements are not met, is there a point to leaving else in there?
-
thanks for the reply UbotDev
-
I'm fairly new to coding, around 4 months. I was wondering if its justified to add fail guards along the way as the bot runs through the code, just an example:
Say I want to log into a site, is it too much to add a safe guard that would check for successful log in and so forth with every major step after that.
thanks for sharing your wisdom
-
thanks for the help, will do
-
Thanks TJ for the quick reply, what if I want to be able to pause and unpause 4 threads independently using 4 x 2 (one pause one unpause) different buttons each with a pushed variable value from the thread as the buttons name, is it possible?
-
I'm trying to pause script for each thread independently but the pause script command seems to be global, any way around this, thanks a bunch.
-
thanks helloinsomnia but I really want to know why its doing it, Ive got a fix, it just bugs me.
-
Any idea why I get an extra empty line whenever I add a list to list from file
The CSV file has 10 rows but it adds 11 items
Row one at position 0 and row 10 at position 9 which is fine, but then there's position 10 (11th item) Cant figure out why, thanks in advance.
add list to list(%test, $list from file("C:\\...\Test.csv"), "Delete", "Global")
-
Is there anyway to have multiple mouse coursers for each thread separately?
thanks
-
Title says it all, any got any idea how to achieve this. thanks
-
We are in need of a uBot developer, must be at least intermediate level (beginners please do not waste my time)
Please send a PM with the following details:
- Experience with uBot (years/months)
- Rate / Hour
- When can you start?
-
Well I managed to do it but it takes allllllot of code, was hoping there was some built in function for this.
-
Hi fellas,
Im trying to have ubot spin a list of items and then remove an item that was used
Ex:
My favorite Cars are:
- [toyota, GM, Fiat, Chevy] Which ever one is used needs to be removed from the list, lets say GM for this one
- [toyota, Fiat, Chevy] Chevy for this one
- [toyota, GM, Fiat]
All this needs to be in one spin node that is within a variable
thanks
any help appreciated
Is it possible to extract a page's html without having to go it physically
in Scripting
Posted
Hi fellas,
I'm trying to scrape a list of websites for a specific word, say "test drive" for example. Is it possible for ubot to extract a particular's site home page html code without having to go there and then scrape the <body> tag which takes a relatively long time.
thank in advance