Jump to content

Search Text and Click or Imagen


Recommended Posts

Good evening my friend, I'm here for a consultation, well I'm interacting with a web where I want to look for a string of numbers on the web and if you find the text continue to click on an image or link, the steps I followed are:

#include <FF.au3>

_FFConnect ()

$Balance = "200"
If _FFReadText ($ balance) Then

---- here would the code to click on the image or link if you find the number "200" on the web, ----

EndIF

 

I await your response, thank you.

Link to comment
Share on other sites

As suggested by junkew, definitely review the documentation for _FFReadText. FWIW, you can't call it in the manner that you posted above. Instead do the following --

$sText = _FFReadText()
    If StringInStr($sText, $Balance) Then
    ...
    Endif

Since a value can occur in multiple places on a website, there are likely more reliable ways to test for the presence of a specific value.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...