Jump to content
UBot Underground

ugakebet

Fellow UBotter
  • Content Count

    235
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by ugakebet

  1. so eddie tell me what this code will return? if($contains("james bond", $find regular expression("james bond, "[nN]ame|[Ll]ocation|[Cc]ity"))) { then { nav ("ufo.com")} else { nav("google.com") } (there might be some errors in the above code as i have manually typed it in, forget about that for now...) in the above code, will the code navigate to google.com? or will it go to ufo.com (according to me, it should go to google as the regex that i am looking for isnt matched. But in a similar code that i have, the THEN portoin gets executed as the regex matches a blank line which gets
  2. Hey, eddie, can you tell me whether $find regular expression returns a number back? in your above example, you have written '>0', i assume u want to check it to see whether it returns true. but then do tell me why my code doesnt work (i dont want to check a number i.e. $list_total, i want to see whether it matches the $find regular expression as a phrase/word) Is this wrong?? if($contains($list item(%forum_names_demo1, $list position(%forum_names_demo1)), $find regular expression($list item(%forum_names_demo1, $list position(%forum_names_demo1)), "[nN]ame|[Ll]ocation|[Cc]ity"))) { then
  3. like i said that wasnt the WHOLE code, now i have copied the WHOLE code, let me know what is wrong (also i have just one item in my list, so i dont see what the prob is) and why do i have to set the list position as 0 initially, if all lists are cleared it should start automatically from 0. clear list(%forum_names_demo1) clear list(%forum_names_demo2) set(#forums_test_variable, "", "Global") add list to list(%forum_names_demo1, $list from file("D:\\forums\\demo.txt"), "Delete", "Global") add list to list(%forum_names_demo2, $list from file("D:\\forums\\demo1.txt"), "Delete", "Global") if
  4. Ummmm actually I have done that, i just never copied the code, i have copied a bit more, see if you can catch what im doing wrong here clear list(%forum_names_demo1) clear list(%forum_names_demo2) set(#forums_test_variable, "", "Global") add list to list(%forum_names_demo1, $list from file("D:\\forums\\demo.txt"), "Delete", "Global") add list to list(%forum_names_demo2, $list from file("D:\\forums\\demo1.txt"), "Delete", "Global") loop($list total(%forum_names_demo1)) { wait(1) if($contains($list item(%forum_names_demo1, $list position(%forum_names_demo1)), $find regular expression($
  5. Once again, I really fail to see what i am doing wrong, why doesnt this work? if($contains($list item(%forum_names_demo1, $list position(%forum_names_demo1)), $find regular expression($list item(%forum_names_demo1, $list position(%forum_names_demo1)), "[nN]ame|[Ll]ocation|[Cc]ity"))) { Do tell, i have fed in a list that contains data not matching the regex, yet ubot processes the THEN statement assuming that IF is matched
  6. ummm, i tried it as a string "name" and as a variable having the value as name, neither work
  7. Can someone kindly tell me what I am doing wrong if($comparison("name", "=", $either("name", "Name"))) { then { pause script wait(3) } else { pause script } }
  8. But what if i need to use multiple OR operators? such as if sky is blue { then { grass is green OR sun is yellow OR plane is white OR i am fat OR you are fat} } how do i use multiple OR operators, other that keep inserting $either(which only limits for just 2 elements)
  9. basically what i want is if (find some regex) { then blah blah } im currently using: if($find regular expression("city", "[nN]ame|[Ll]ocation|[Cc]ity")) { then {} else {} } but it doesnt return as true, it directly exits the IF statement
  10. The site: http://www.audizine.com/forum/register.php? (enter and DOB and get to the next page where u have to fill up the details) AIM: To fill up the 4 fields under the ‘additional required information’ (out of which name and location should be from UI textboxes, whereas ‘daily driver’ and ‘please confirm your blah blah’ should be prompts such that the user can manually enter it in Criteria to be fulfilled: Whatever is to be done should be generalized so that I can use it on 10 other sites Problem1: Open up firebug in FF and u will notice that un
  11. clear list(%forum_names_demo1) add list to list(%forum_names_demo1, $find regular expression($page scrape("Additional Required Information", "Additional Information"), "<label>[^>]*</label>"), "Delete", "Global") save to file("D:\\forums\\demo.txt", $replace regular expression(%forum_names_demo1, "<[^>]*>", $nothing)) clear list(%forum_names_demo1) add item to list(%forum_names_demo1, $list from file("D:\\forums\\demo.txt"), "Delete", "Global") delete file("D:\\forums\\demo.txt") now if u check the list_total of %forum_names_demo1, it says 1 (why is it showing every
  12. hmmmm yea that makes sense using the logical OR operant... Ill try that and see it thru, thanks for the help mate
  13. John, YOU DA MAN... that was freakin' brilliant....... you wont believe how many times i refreshed this page just to check if there was a reply to my post!!!! :) :rolleyes: just a thought, if im trying to implement this on other websites, how do i choose the element_to_change thing? for instance in this website i can use change attribute(<name="userfield[field8]">, but what about other websites, i cant use [field8] coz they might have different names or id or classes etc.... so how do i generalize this code so that i can get it to work on like 10 or so diff websites?
  14. hey guys, here is how i got it to work in ubot4 http://ubotstudio.com/forum/index.php?/topic/9280-how-do-i-use-the-before-and-after-attributes/
  15. hey guys, here is how i got it to work in ubot4 http://ubotstudio.com/forum/index.php?/topic/9280-how-do-i-use-the-before-and-after-attributes/
  16. hmmm i think you saw my post before i edited it, see if you can answer the question i put up, thanks -al
  17. hey can you guys tell me how do i use these footprints. for instance if i navigate to a blog how do i search that it is a wp blog? do i have to tell ubot to search through the source code or something? (can someone copy the code source here so that i can understand it?)
  18. another question john, see the two fields on the site that say 'daily driver' and 'please confirm your legitimate interest in our community (enter the 4th letter of the word _________)', how would i get these to pop up as captcha so that the user can enter them?
  19. hey john, you are using a "name=userfield[field6]" attribute so it works, i tried to modify your same code and i used, change attribute(<before="Name::">, "value", "John") and it works perfectly (as to what i want), but then tell me why does the following code enter "john", 5 times?? type text(<after="Name::">, "john", "Standard") shouldnt the 'change attribute' and 'type text' selectors give the same thing to me?
  20. so does this mean it clicks the <a>??
  21. Hey Hohn, here is the site i am trying for My link enter any date and proceed to the next page, notice the label that says "name:", try to select that textbox adjoining it and choose the 'BEFORE' attribut as i mentioned in the earlier post, and see what happens. (i am trying to use the wildcards thing as i want to match "NAME" and not "NAME::" [i dont want the 2 colons to be matched]) lemme know -alvito
  22. I wanna fill up a textbox and the label before it says "name::", so what i do is type text(<before="Name::">, #forums_fn, "Standard") the only problem with this is that it enters my variable in the text box 5 times and not just once... is it because now the above code, in node-editing format, shows me that the attributes- before, after, innertext (and 2 others) all give "name::" what i mean to say is ubot getting confused and so entering the variable in the textbox 5 times due to these additional matching attributes? (it shouldn't really happen coz i have chosen the textbox which h
  23. Yea John I realise that, but could you use the element_sibling in the above website that I gave you? How do I use it to tell ubot to enter data based on the labels adjoining
  24. i cant seem to get it to work for http://www.audizine.com/forum/register.php?do=checkdate
×
×
  • Create New...