easternfade
Fellow UBotter-
Content Count
19 -
Joined
-
Last visited
Community Reputation
0 NeutralAbout easternfade
-
Rank
Member
- Birthday 01/01/1
Profile Information
-
Gender
Not Telling
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
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.
-
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?
-
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..
-
How to evaluate whether a sub returned true or false
easternfade replied to easternfade's topic in Scripting
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! -
Loading drop down lists from a website into ubot
easternfade replied to theninjamanz's topic in Scripting
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. -
I'd like to name files on the fly, say with the current timestamp. Has anyone managed to do this? When I try something like in the attachment, the file is just not saved. Thanks!
-
How to evaluate whether a sub returned true or false
easternfade replied to easternfade's topic in Scripting
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.. -
How to evaluate whether a sub returned true or false
easternfade replied to easternfade's topic in Scripting
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.. -
easternfade started following How to evaluate whether a sub returned true or false
-
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