Jump to content

Estrazione valori da una stringa


Recommended Posts

Hi guys,

I'm new of this forum and I've been studing autoIt since a few days.

I need to extract a number from a string. I can take this string with

WinGetText ( "www.darkorbit.bigpoint.com","" )

Can I extract the text in a particular area of the window? in pixel his position is 200,30,600,50.

How can I get it???

Thank you for your answer

Roberto

(I'm italian and I can't speak english very well))

Link to comment
Share on other sites

And another thinks....

I've this function

$testo = WinGetText ( "www.darkorbit.bigpoint.com","Fuori Gittata"  )
                        If not $testo="" then
                         $fuori=$fuori+1
                        EndIf 
                        If $fuori=3 then
                          $velocita=$velocita+1
                          $fuori=0
                        
                    endif 
  MsgBox(1, "Numero fuori gittata", "Hello from the main script!" & $testo)

$testo turn me 0...

I open a page with the title www.darkorbit.bigpoint.com where is write a lot of Fuori Gittata...

So I wonder if I do a mistake!

Please Help Me!!!!

Link to comment
Share on other sites

Hmm, my idea is that you might try to write a kind of OCR (Optical Character Recognition) program by scanning the pixels on the screen...

I don't know what it is... with OCR I can get a text, an specify image or color and also a number(like 256000/256000)?
Link to comment
Share on other sites

No you cant read the text from the browser with WinGetText, you can get the source of the page and then search there your information.

If you post the source I can help you

The page is a flash page...I can't get the source. if I click with the right on it I can reach only impostation of flash!

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...