clasher Posted January 27, 2009 Posted January 27, 2009 This is the code that I need on help MouseMove(733,344) _PixelShow_Virtual(195, 14, 195, 14) Sleep(100) $output = _OCR(".\images\Render.bmp") For $i=0 to 1000 step 1 Select case $output[$i] = "would" ExitLoop case else $Musteri[$i]= $output[$i] EndSelect Next This code is relied on a ocr script, which capture from the mouse place and save it to the specified folder. then It recognize the words it contains till a would word came, those words before the would is gathered on another array which is called as musteri. Now I need a way to combine the array of musteri which contains more than 1 word inside... like Musteri[0]= xxxx musteri[1]= yyyyy musteri[2]= zzzzzz. I want to sort them in another variable which will only have these; $variable = xxxx yyyyy zzzzzz (with the spaces) so I need to turn the array (how many row it contains not important(1 or 100)) to a regular sentence Need help
Malkey Posted January 27, 2009 Posted January 27, 2009 This is the code that I need on helpMouseMove(733,344) _PixelShow_Virtual(195, 14, 195, 14) Sleep(100) $output = _OCR(".\images\Render.bmp") For $i=0 to 1000 step 1 Select case $output[$i] = "would" ExitLoop case else $Musteri[$i]= $output[$i] EndSelect NextThis code is relied on a ocr script, which capture from the mouse place and save it to the specified folder. then It recognize the words it contains till a would word came, those words before the would is gathered on another array which is called as musteri. Now I need a way to combine the array of musteri which contains more than 1 word inside... like Musteri[0]= xxxx musteri[1]= yyyyy musteri[2]= zzzzzz.I want to sort them in another variable which will only have these;$variable = xxxx yyyyy zzzzzz (with the spaces) so I need to turn the array (how many row it contains not important(1 or 100)) to a regular sentenceNeed help This is a solution to what I think you are asking.If _ArrayToString() is used, the include file, Array.au3, needs to be included at to of the script.#include <Array.au3> MouseMove(733, 344) _PixelShow_Virtual(195, 14, 195, 14) Sleep(100) $output = _OCR(".\images\Render.bmp") For $i = 0 To 1000 Step 1 Select Case $output[$i] = "would" ExitLoop Case Else $Musteri[$i] = $output[$i] EndSelect Next ReDim $Musteri[$i] $variable = _ArrayToString($Musteri, " ") MsgBox(0, "", $variable)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now