easternfade
-
Content Count
19 -
Joined
-
Last visited
Posts posted by easternfade
-
-
Create an IF statement
Then right click on the screen what you want it to find.
Then go back to the qualifer and pick search page. Within the selection given should be the text you want. All you do is select it.
If you dont find it then just type it in.
When I tried this with a Not around Evaluate, it didn't work. It seemed to evaluate True even though the text was in the page. Have you got it working with the Not?
-
here is how you could currently do this.
http://screencast.com/t/yDEsRU9jba
I want to be careful not to clutter things up with commands that aren't needed. does anyone else thing that an append file command would make things easier?
Whoah old thread, but the feature hasn't been done.
I do think it's a good idea, because quite often you want to run a bunch of scripts that work on different sites (think account creation) and then bundle all the results into one file. The current limitations with naming save files on the fly means you have to either keep overwriting the same file or specify a file for each script (messy in UI).
So +1 from me.. i don't think it should be a checkbox (that's probably hard coz it's not supported in the .net win gui anyway) - i think it should be "append to file" as an additional command to "save to file"
-
Bump - I would really like this feature
-
+1 for this feature.
We basically need a find in string variable that supports regex.
Thanks!
-
Hi,
At the moment it seems you can only include bots from My Documents, and then with an absolute path. This isn't so good when sharing bots, as it stores the current user's path.
I've tried including bots with just the Bot file name as well as .\botname.ubot but it doesn't seem supported.
Any chance in getting this done? It would mean we can distribute a set of bots together, which could interact if they were kept in the same directory.
Thanks - ubot is awesome!!
-
I'm struggling with getting ubot to do the following:
1. Navigating to a preselected URL from a .csv, browsing through "next" buttons on this website and scraping data id's.
2. When I've added 50x data id's, I want it to save its current URL by overwriting the initial URL and then log out.
3. Then get the updated URL and login again, and continue to add 50x from where it left off.
4. When all the data id's on all the "next buttons" are added, it should remove the URL entry all together, and then go to the next preselected URL in the .csv.
5. And so forth...
Thereby eventually reducing the list of URLs down to zero.
Getting it to login/logout, recognize "next buttons", scraping the data etc is simple.
However I can't get it to update just the URL it is currently "working on".
Neither can I get it to delete itself once it has run out of "next buttons".
Obviously it would be easy if ubot had the option of removing list items based on content. But it seems like it's a bit problematic with this kind of circular list referencing.
Any ideas?
Thanks!
It sounds like you can just loop on the list of urls.
And in step 2, just save the updated url in a variable.
-
I'd like to be able to compile bots that exclude the list of scripts and disables the browser window. In such a way that when a user opens the bot they only get to see the play and stop buttons and any UI bits that have been set.
+1
-
My bot registers accounts at the same site multiple times. I'm having trouble when a public proxy isn't working, the bot gets stuck. Just looking for feedback from people who might be doing something similar. Do you error check or anything?
One idea i had is:
Put this in a loop:
- have a sub that scrapes a known page (google.com) for text.
- Run this after you change the proxy.
- If it fails (404, timeout), change the proxy. Repeat..
-
It's late and I am probably doing something dumb, but I am having an issue trying to get past the error in the attachment.
I've also tried putting $return value straight into the if qualifier.
The contents of the sub being called is exactly the same as the example bluegoat posted above.
Any ideas?
Thanks!
-
Is there any way I can prefill drop down boxes in ubot which are stored on a website.
For example would it be possible on a site that has a drop down box of choices to load the contents of the drop down list dynamically into a field in ubot? So that the updating of these lists occurred when ubot was opened?
Thanks
Haven't really looked into it but..
Perhaps with scrape page, and some clever replacing ?
Or do it in perl/php and save to a text file.
Then call that php file from the SHELL command in Ubot; then have ubot load from the text file.
That might be a lot easier because you can use Mechanize or just cut up the source with perl's great features.
-
-
Yes, you need to run the sub and THEN have the if command see if whatever you want is true.
Thanks Hannah,
I haven't had a chance to try the suggestions yet, but do you mean I should set a variable with the result from the sub, or put the Run Sub call directly in the If statement's qualifier block?
Cheers..
-
This should do the trick...
Thanks a lot for that!
So then when I return #sub, do I just check the return value by using an If block in the main script? That's the bit I couldn't get right..
-
Gday..
I am trying to do the following in a sub:
- check for various items on a page
- if not present, return false, else return true
I have tried to plug the sub into the qualifier part of an if statement, but it always seems to evaluate as true.
I also tried setting a variable with the Sub as the input, but Ubot gets an Invalid Cast Exception.
The video that's supposed to be on returning from subs is actually about error reporting, so I couldn't find any info there.
Hope that makes sense - I can post screenshots.
Any help greatly appreciated!
Thanks
-
+1
This is also required in the $replace function.
-
Another vote for this - it would really help!
Loading Values automatically
in Scripting
Posted
Interesting.. I could never get this to work in a non-compiled bot.
Have you tried loading or saving dynamically created file names?
e.g. /accounts/accounts-{1}.csv
I have never been able to get this to work unfortunately. It just does not create the file at all and silently fails.