Jump to content
UBot Underground

Chainsaw

Fellow UBotter
  • Content Count

    235
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Chainsaw

  1. OK Xpath Builder Pro has made me lazy. Anyone know how to log into Twitter with this? At the moment it won't let me type anything into the password field when using XBP.
  2. I've found I can use the ClearTextBox command followed by the Type Text command to get the correct text string into the form field.
  3. Yes you are right that the value is changing in the HTML source however when submitting the form it is the old default value that is still visible in the form field that gets submitted. The only situation where it is changing the form value field as desired is when there is no initial value in that field at page load time.
  4. I've since found that using ExBrowser Change Attribute works as expected for other form fields. I'm not sure why it doesn't work in this case. <input type="text" class="form-control bg-gray" name="name" id="modalFieldName" value="My Name" required=""> Sorry I do not know about "Paste into element". Is that a command available in a Ubot pluggin or XPath?
  5. I need to use Change Attribute rather than Type Text however trying to change the attribute value, nothing happens. Type Text in the code below works but Change Attribute does not. plugin command("ExBrowser.dll", "ExBrowser Type Text", "x://input[contains(@name,\"name\")]", #newname) plugin command("ExBrowser.dll", "ExBrowser Change Attribute", "x://input[contains(@name,\"name\")]", "value", #newname) Is there an error in my code? Or perhaps the change the attribute value needs some special syntax to work. Any suggestions?
  6. Thanks Marani. $trim takes care of the leading blanks. Still leaves in the trailing line feeds and blanks. So after applying $trim I took the first element of a $list from text delimited with the $new line. Kind of long winded but it works. I guess what I'm trying to find is the equivalent to the Ubot $scrape attribute "innertext" parameter. It automatically strips leading and trailing blanks and line feeds.
  7. When trying to scrape some inner text that is padded with blank lines and blank characters. What it the best way to just get the actual text without all the blank characters and line feeds?
  8. Just purchased so this is a noob question. When I launch Chrome with ExBrowser, I get a notice inside Chrome that says "Chrome is being controlled by automated test software". Is this potentially a problem? As its kind of a giveaway if the browser is popping up that message. Thanks for any tips on this.
  9. I'm using Ubot 5.9.50 Luckily for what I'm doing Chrome 21 is working well enough.
  10. Here's an update on the Javascript version putting it into a Ubot Function including a parameter to set the number of random hashtags to return. set(#hashtags,"a,b,c,d,e","Global") define $TagRandomizer(#hashtags, #maxtags) { return($eval(" function shuffleTags(tags) \{ var a = tags.split(\',\'); var j, x, i; for (i = a.length; i; i--) \{ j = Math.floor(Math.random() * i); x = a[i - 1]; a[i - 1] = a[j]; a[j] = x; \} return a.slice(0,{#maxtags}).join(); \} shuffleT
  11. Thanks HelloInsomnia, that is awesome! I've been working on a solution using Javascript and this is what I've come up with. set(#hashtags,"a,b,c,d,e","Global") set(#hashtags,$eval("function shuffleTags(tags) \{ var a = tags.split(\',\'); var j, x, i; for (i = a.length; i; i--) \{ j = Math.floor(Math.random() * i); x = a[i - 1]; a[i - 1] = a[j]; a[j] = x; \} return a.join(); \} shuffleTags(\"{#hashtags}\");"),"Global")
  12. I'm looking for a simple way to shuffle a list in Ubot. What I'm wanting to do is randomly pick from a big list of hashtags, without choosing the same hashtag more than once. Seems the easiest solution would be to shuffle the hashtag list and then grab the first x number of tags. Perhaps someone has already done this before or perhaps there is a better way to do this. Thanks!
  13. Unfortunately it's inside a private members area. Maybe its something weird about the site's code as its a browser based SAAS.
  14. You are probably looking for the "set user agent" command found under "Settings Commands" of the Commands menu.
  15. In most use cases the 1st matching result is probably the one that is needed. The last matching result of a table for example is unlikely to be the result needed but this is the default result returned.
  16. Yes that does work. However it is unfortunate the default action doesn't take the first matching result rather than the last matching result. It would also be better if element offset didn't have to be manually edited into the code. If there is more than one matching result, surely an option to specify the offset should automatically appear.
  17. Just rebooted and have been able to validate my license.
  18. Anyone having problems running Ubot today? I can't get past the validating license screen.
  19. Thanks pash and Code Docta. Yes I've found I have to use something like this set(#itemName,$list item($list from text($scrape attribute(<innertext=w"*">,"innertext"),$new line),0),"Global") It would be handy if there were a simple scrap option that only returned the first matching item.
  20. As a workaround you can set a variable for the Parent Window and Parent Class with Parent Class including the wildcard *. set(#ParentWindow,"DragnDropBot_00.11* - UBot Studio Stealth Developer Edition","Global") set(#ParentClass,"HwndWrapper*","Global") Prior to creating a binary you need to change #parentWindow to the Parent Window name that the binary build will have such as "DragnDropBot_00.11* - UBot Compiled Bot".
  21. From what I've read online about Parent Class and wildcards. Wildcards should work and are in fact essential when referencing the Parent Class as it can change from one application run to another. With Ubot 5.9.50, if a wildcard is not used in the Parent Window reference then a wild card can be used in the Parent Class. While this would break compiled bots, it is at least is workable for bots run from the bot editor. If it were possible to use a wildcard * in both the Parent Window and Parent Class, Windows Commands would actually work in compiled bots and drag and drop would work in co
  22. Even on a compiled bot, every time the bot is launched the Parent Class is different. There must be some way to assign the Parent Class as the current instance of Ubot. Otherwise almost all the Windows Functions become useless for controlling the Ubot browser.
  23. Just found * will work as a wild card for the Parent Window name. However * doesn't seem to work for Parent Class. Parent Class seems to be unique every time Ubot is relaunched. For example: "HwndWrapper[uBot Studio.exe;;d2195f31-a09c-480a-b4f3-36d5ab8ab3e4]"
  24. I need to use the mouse move command on a page inside of the Ubot browser. However mouse move needs the Parent Window name. This is not a constant as changing the bot name for a new version changes the Parent Window name. I suspect a similar problem will occur for the Parent Class which currently is "HwndWrapper[uBot Studio.exe;;66b3a67f-2518-4c99-94f0-8c9806fc0dcb]" Is there a way to use wildcards for Parent Window and Parent Class?
×
×
  • Create New...