Jump to content
UBot Underground

How to get bot to search in source


Recommended Posts

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.

Link to post
Share on other sites
  • 2 weeks later...

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?

Link to post
Share on other sites
  • 4 weeks later...

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?

 

I'm having this problem too. I set up an if then, set the qualifier to search, select text in the prompt box, and it does not run the commands.

Link to post
Share on other sites

I may be off base here, but it may be that doing "If Search = something" is really saying "if UBot is able to search for something". Which of course will always be true, because it's always ABLE to search for it, whether it finds it or not. This is a common mistake I've run into with PHP anyway.

 

Personally I would try this:

 

IF

>evaluate

>>$page scrape

>>>start value

>>>end value

>>=

>>something

THEN

>Do Something

 

See if that gets you where you need to go!

 

Jonathan

Link to post
Share on other sites

Straight from the horse's mouth (UBot Commando Guide):

 

"Search Page: This is a qualifier that will return true if the specified text is present on the page."

 

 

So, using the search as a method to evaluate and return a true value works fine.

 

Tom

 

 

I may be off base here, but it may be that doing "If Search = something" is really saying "if UBot is able to search for something". Which of course will always be true, because it's always ABLE to search for it, whether it finds it or not. This is a common mistake I've run into with PHP anyway.

 

Personally I would try this:

 

IF

>evaluate

>>$page scrape

>>>start value

>>>end value

>>=

>>something

THEN

>Do Something

 

See if that gets you where you need to go!

 

Jonathan

Link to post
Share on other sites

Sounds to me like more cases where that "Else" statement would come in handy, but really I have no clue what anyone's trying to accomplish here. Way too vague on descriptions to even try and offer a suggestion that would be helpful.

Link to post
Share on other sites

I was having the same problem.

 

I figured I'd share a work-around I came up with to get around the lack of an "ELSE" clause.

 

Create a variable (let's call it variableA)

 

Set #variableA -> False

 

IF-> (Search Page (String))

 

Then-> Set #variableA - > True

 

If (evaluate (#variableA = 'True')

 

Then - > Run Commands

 

 

I literally couldn't figure out another way. (Not(Search Page(String))) always seems to return true No Matter What...

 

So I don't know what's going on there.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...