Jump to content
UBot Underground

k1lv9h

Fellow UBotter
  • Content Count

    293
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by k1lv9h

  1. Hi, Here is a simple multi thread sample. Threading your program will not be easy. Trying to keep the shortened urls together and in order with the url used to generate them. ui text box("threads", #threads) ui text box("cycles", #cycles) set(#theadcount, 0, "Global") set(#cyclecount, 0, "Global") loop(#cycles) { loop(#threads) { loop while($comparison(#theadcount, ">=", #threads)) { wait(1) } increment(#theadcount) thread { in new browser { navigate("http://www.ubotstudio.com/playground/simple-form", "Wait")
  2. Hi, You could save variable in ui stat monitor to a text file. Then open the text file with notepad. Use CTL-A and CTL-C. Sample code: set(#clipit, "save to clpboard", "Global") set(#file, "c:\\dnld\\testclipboard.txt", "Global") save to file(#file, #clipit) shell("cmd.exe /C notepad.exe {#file}")Thanks, Kevin
  3. Hi, This should work with Ubot Studio version 5.: Replace new lines with nothing when loading #page Added to regex A-Z for capital letters set(#page,$nothing,"Global") navigate("http://www.yellowpages.com/search?search_terms=realtor&geo_location_terms=Homestead%2C+FL","Wait") wait(3) set(#page,$replace($document text,$new line,$nothing),"Global") set(#Compan Names,$find regular expression(#page,"(?<=class=\"business-name\" data-impressed=\"1\">)[0-9A-Za-z ]+"),"Global")This should work with Ubot Studio version 4. Replace new lines with nothing when loading #page Added to regex A-Z
  4. Hi, Originally tested with Ubot version 4. Just tested with Ubot version 5. My test was successful. Kevin
  5. Hi, This Ubot "shell command" you provided worked for me. Kevin
  6. Try this for 32bit app installed on 64bit Windows: shell("{$special folder("Program Files")} (x86)\\viewer\\Theviewer Viewer.exe")or shell("cmd.exe /C {$special folder("Program Files")} (x86)\\viewer\\Theviewer Viewer.exe")Kevin
  7. Hi, Sample code: sample-table-003.ubot Kevin
  8. Hi, Sample code: shell("{$special folder("Desktop")}\\folder\\mail.exe") shell("cmd.exe /C {$special folder("Desktop")}\\folder\\mail.exe")Kevin
  9. Hi, @dan Where is the loop for a count of 0 that the navigate command is in. No matter updated .ubot file to match code. Kevin
  10. Hi, Javascript code to get image width and height: set(#imgurl, "http://www.selby.com.au/media/catalog/product/u/h/uhf088.jpg", "Global") loop(2) { set(#imginfo, $eval(" var imgHeight var imgWidth function findHHandWW() \{ imgHeight = this.height;imgWidth = this.width;return true \} function showImage(imgPath) \{ var myImage = new Image() myImage.name = imgPath myImage.onload = findHHandWW myImage.src = imgPath \} showImage('{#imgurl}') imgWidth+\"x\"+imgHeight"), "Global") }sample-image-properties-002.ubot Kevin
  11. Hi, Changed: 1. loop to loop while. Should exit loop while on match. 2. $find regular expression to $replace regular expression. 3. Added if then else checks to avoid exceed list error Code: set list position(%file1, 0) set list position(%file2, 0) loop($list total(%file1)) { if($comparison($list position(%file1), "<", $list total(%file1))) { then { set(#xxxx, $replace regular expression($next list item(%file1), ".*\\\\", $nothing), "Global") set list position(%file2, 0) set(#foundmatch, $false, "Global") loop while($both($com
  12. Hi, Yeah your are correct. My code sample just set a value via command prompt. Does not interact with a program. Weird the program you are running does not provide a means to pass additional value(s) for the prompt(s). Kevin
  13. Hi, This works for me: set /P myname="Enter name: "Kevin
  14. Hi, Code: set(#selected, $replace($find regular expression($replace("216.250.7.197:8090 213.181.73.145:80 217.8.57.245:3128 212.3.190.77:8080 27.24.158.153:81 221.176.189.14:8080 202.43.188.11:8080 202.96.136.169:2121 201.65.114.212:3128 41.130.195.107:3128 201.49.209.148:3128 202.43.188.199:8080 201.242.11.102:8080 41.164.23.162:8080 41.32.16.85:8080 42.120.20.120:3128 46.13.10.218:3128 41.78.27.237:8080 41.78.27.141:8080 42.121.117.153:8080 46.29.78.20:3128", $new line, "[NL]"), "(27.24.158.153:81.+|\\r\\n+46.13.10.218:3128)"), "[NL]", $new line), "Global")Kevin
  15. Hi, Sample code: sample-email-group-001.ubot Kevin
  16. Hi, With 3rd one sample: ui html panel("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> <html> <head> <title>Dynamic Lisbox</title> </head> <body> <div class=\"form-group\" id=\"first_name-container\"> <label for=\"category\">Category</label> <select class=\"form-control\" id=\"category\" variable=\"#Data Category\" fillwith=\"value\" size=\"4\" > <option value=\"\">Select One</option> <
  17. Hi, Sample code: sample-loop-pages-001.ubot Kevin
  18. Hi, According the Ubot Studio web page "Features" it should be in all versions(Standard, Pro, and Dev). Under "Windows Commands". Kevin
  19. Hi, Using your sample this code: set(#pninput, "[\"(212) 733-1300\"]", "Global") set(#pn, $replace($find regular expression(#pninput, "(\\d\{3,4\})"), $new line, $nothing), "Global")would give you 2127331300 Kevin
  20. Hi, I made some changes. Attached code for you to review. sample-twr-add-user-002.ubot Noticed the proxy does not allow https: Switches to https when sign up button is clicked. No stop script if #accountsfile value is equal to $nothing added rand30000 variable Changed email and username. changed some type text elements. Kevin At some point you may want to follow the instructions in this forum topic: http://www.ubotstudio.com/forum/index.php?/topic/7731-forum-permissions-new-users-read-here/ to get more forum permissions.
  21. Hi, Ubot Studio help has "$substract lists" available in Pro Edition. Kevin
  22. Hi, Maybe this: navigate($scrape attribute(<innertext=w"http://www.linkedin.com/e/*">, "href"), "Wait")Kevin
  23. Hi, Sample code for table search to find rate: sample-table-rate-lookup-001.ubot Updated sample code: Fixed beyond table range logic. Kevin
  24. This forum topic has what you need to do to get access. http://www.ubotstudio.com/forum/index.php?/topic/7731-forum-permissions-new-users-read-here/ Kevin
×
×
  • Create New...