Jump to content
UBot Underground

Chainsaw

Fellow UBotter
  • Content Count

    235
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Chainsaw

  1. Here's my take on a solution: Note: I'm not sending the output anywhere, just displaying in the UI. ui text box("Search Parameter", #SearchString) ui stat monitor("Original List count: ", #UrlsCount) ui stat monitor("Original List count: ", #FilteredUrlsCount) ui stat monitor("RegexPassed", #RegexPassed) set(#Urls, "/Curation /Digital-Curation /Social-Curation /Content-Curation-1 /Data-Curation /Store-Curation /Can-content-curation-become-mainstream /Who-curates-the-curators /Web-Content-Curation-Applications /Web-Content-Curation-Startups /search?q=curation&context_type=&context_
  2. Here's a Custom Command - append define append(#data, #filename) { save to file(".temp", "{#data}{$new line}") shell("cmd.exe /C type .temp >> \"{#filename}\"") } set(#text, "some text to save", "Global") set(#file, "Z:\\Ubot Studio\\test.txt", "Global") append(#text, #file)
  3. Yep that works. set(#puttofile, "test < > ^ test", "Global") set(#thefile, "\"Z:\\Ubot Studio\\test.txt\"", "Global") save to file(".temp", "{#puttofile}{$new line}") shell("cmd.exe /C type .temp >> {#thefile}")
  4. Almost a working append command. Would need to pass the text string with a regex to escape all the special shell characters like <, >, (, ), etc
  5. Got it working. Got to rap the file path in quotes because it has blank space in the directory name. set(#puttofile, "test", "Global") set(#thefile, "\"Z:\\Ubot Studio\\test.txt\"", "Global") shell("cmd.exe /C echo {#puttofile} >> {#thefile}") Cool. Now we have the basis of a simple working "append" command. Thanks Kevin!
  6. This will work. It will create or append a file in the same directory as the bot. set(#puttofile, "test", "Global") set(#thefile, "test.txt", "Global") shell("cmd.exe /C echo {#puttofile} >> {#thefile}") So the problem is just something to do with escaping the back slash.
  7. Thanks Kevin. That looks pretty good and looks like it should work but for some reason its not saving anything. set(#puttofile, "test", "Global") set(#thefile, "Z:\\Ubot Studio\\test.txt", "Global") shell("cmd.exe /C echo {#puttofile} >> {#thefile}") I'll look into cmd.exe a bit more.
  8. So far I've the shell command to run a batch file. For example test.bat Inside the batch file you can code such as echo hello world >> file.txt Or you can send input to the batch from the command line like test.bat "hello world" file.txt echo %1 >> %2 This will append "hello world" to file.txt However you can't do this with the Ubot shell command. All it seems to be able to do is run an executable and nothing more.
  9. If we need to run an executable or a batch file, we almost always need to be pass parameters as well. For example the missing "append" command could be done with a batch file but you'd need to pass the file name and the data string. Can this be done?
  10. Only essential command missing is "append to file". If it is possible to pass parameters to a .bat file then might work...
  11. Think I've found the answer to escaping line feeds when preparing blocks of text for processing with javascript. set(#a, $replace regular expression(#a, $new line, "\r\n"), "Global")
  12. What I'd also like to do is escape line feed characters from a block of text, prior to processing the text with javascript. Is there some built in function to take line feeds and turn them into javascript friendly \r\n ?
  13. Nice. I couldn't find any documentation on this but with that example, you've made it much clearer. Thanks Is there any preset function to escape input to make it ready for JavaScript?
  14. What about Bot Buddy. Bot Templates. Template Bank. Have to say bank makes more sense than source as the source code of these botlets is hidden.
  15. There doesn't seem to be any way to return values from a javascript, whether or not its inside a function.
  16. Thanks LoWrIdErTJ, that is pretty much what I'm trying to do. Unfortunately I'm still doing something wrong. Here is a really simple example that should set #a to 10 but it leaves it undefined. set(#a, 1, "Global") define $js { run javascript("10;") } set(#a, $js(), "Global") ui stat monitor("a=", #a)
  17. I've got some bots built with Zennoposter and want to port them over to Ubot. In Zennoposter I made extensive use of Javascript to handle any complex data manipulation. As far as I'm aware, Ubot can also execute Javascript but I can't figure out how to get the data out after executing the javascript. I'm sure its very simple... Can someone point me in the right direction. Cheers!
  18. You can run about 6 XP machines with 1 GB each inside Virtualbox using Linux 32bit PAE kernel and 8 gig of RAM. There is a reason why cheap corei7 laptops exist.
  19. Tried using negative coordinates but that doesn't work. Open to suggestions
  20. I need to use Mouse Move followed by a Mouse Click to handle a tricky java button. However there seems to be no way to control the size of a Ubot window and the area to be clicked is small. So I need to use Mouse Move using coordinates from right side. Is this possible? Alternatively I need to control the Ubot browser window width but there doesn't seem to be any way to do that either. Any suggestions welcome. Thanks
  21. I trying to do something similar I think. I'd like to load the file names of a local directory into a list. $get files is perhaps the command I am looking for. I have the dev version. Where exactly is this command hiding? Thanks in advance Update: Just noticed you included a link to a video showing this ... Awesome!!!
  22. I think the best way to approach it is to write a routine in javascript and call it as needed. Use Ubot for site interaction automation and javascript for any complex data manipulation.
  23. Yes I've tried placing "set proxy credentials" before "change proxy", after "change proxy", before "navigate" and after "navigate". The dialogue box pops up asking for the username and password but nothing gets entered. Perhaps there is another command that needs to be used along with "set proxy credentials"? "thread" perhaps?
×
×
  • Create New...