Sign in to follow this  
Followers 0
vladedoty

scrape and finding the scraped text help

2 posts in this topic

I am having problems with scraping.  Kinda new to this.  Was wondering, after I scrape the text I get something like this

Func EnterName()

    ; Load characters showing EnterName into the scrape character bank

    Local $bankname = "EnterName"   
    Local $numbercharacters = 23

    ; Don't load the bank if it's already loaded with these characters, or if there are too many characters
    If $Char_set_name = $bankname Then
        Return "success"    
    ElseIf $numbercharacters > $Char_maxchars Then
        Return "fail"   
    Else
        ; Otherwise, empty the charbank and then refill it
        Util_EmptyCharBank()
        $Char_set_name = $bankname
        $Char_bank_number = $numbercharacters
    EndIf

    ; Character H
    $Char_bank_chr[1]    = "H"
    $Char_bank_width[1]  = "6"
    $Char_bank_height[1] = "8"
    $Char_bank[1][1]     = "x    x"
    $Char_bank[1][2]     = "x    x"
    $Char_bank[1][3]     = "x    x"
    $Char_bank[1][4]     = "xxxxxx"
    $Char_bank[1][5]     = "x    x"
    $Char_bank[1][6]     = "x    x"
    $Char_bank[1][7]     = "x    x"
    $Char_bank[1][8]     = "x    x"

Return "success"    

EndFunc

How would I use this function and call it to find a letter that matches in a window we will call $window?

Share this post


Link to post
Share on other sites



I am having problems with scraping.  Kinda new to this.  Was wondering, after I scrape the text I get something like this

Func EnterName()

    ; Load characters showing EnterName into the scrape character bank

    Local $bankname = "EnterName"   
    Local $numbercharacters = 23

    ; Don't load the bank if it's already loaded with these characters, or if there are too many characters
    If $Char_set_name = $bankname Then
        Return "success"    
    ElseIf $numbercharacters > $Char_maxchars Then
        Return "fail"   
    Else
        ; Otherwise, empty the charbank and then refill it
        Util_EmptyCharBank()
        $Char_set_name = $bankname
        $Char_bank_number = $numbercharacters
    EndIf

    ; Character H
    $Char_bank_chr[1]    = "H"
    $Char_bank_width[1]  = "6"
    $Char_bank_height[1] = "8"
    $Char_bank[1][1]     = "x    x"
    $Char_bank[1][2]     = "x    x"
    $Char_bank[1][3]     = "x    x"
    $Char_bank[1][4]     = "xxxxxx"
    $Char_bank[1][5]     = "x    x"
    $Char_bank[1][6]     = "x    x"
    $Char_bank[1][7]     = "x    x"
    $Char_bank[1][8]     = "x    x"

Return "success"    

EndFunc

How would I use this function and call it to find a letter that matches in a window we will call $window?

ok so i have gotten farther along but now when i beta run it i continue to get this error:

If $scrapedchar_width = $Char_bank_width[$bankcount] AND $scrapedchar_height = $Char_bank_height[$bankcount] Then
If $scrapedchar_width = ^ ERROR

i put this global variable at the beginning but continue to get the error.

Global $Char_maxchars = 64

Share this post


Link to post
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
Sign in to follow this  
Followers 0