Sign in to follow this  
Followers 0
ziknos

Solve Math Operation

7 posts in this topic

#1 ·  Posted (edited)

Hello, im triying to make script to solve math operations same than this :

Posted Image

i have to check the Number + Numer and do the operation, and then click the correct answer, im new in autoit so i have a lot problems to how to start my script..

i think if i can make Screenshot of each sum and compare my screenshot whit the web sum and next search the correct answer but i dont know how to do it..

if you can help me saying how to start..

PD: Sorry for my english.

really thanks!!

Edited by ziknos

Share this post


Link to post
Share on other sites



Is this what you mean ?

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

$Form1 = GUICreate("Form1", 376, 85, 193, 125)
$Label1 = GUICtrlCreateLabel("4 + 8", 32, 16, 93, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("=", 136, 16, 23, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Label3 = GUICtrlCreateLabel("5", 176, 16, 22, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Label4 = GUICtrlCreateLabel("12", 212, 16, 38, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Label5 = GUICtrlCreateLabel("9", 269, 16, 22, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

        Case $Label3
            MsgBox(0,"Answer", "Wrong")
        Case $Label4
            MsgBox(0,"Answer", "Correct")
        Case $Label5
            MsgBox(0,"Answer", "Wrong")
    EndSwitch
WEnd


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Is this what you mean ?

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

$Form1 = GUICreate("Form1", 376, 85, 193, 125)
$Label1 = GUICtrlCreateLabel("4 + 8", 32, 16, 93, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("=", 136, 16, 23, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Label3 = GUICtrlCreateLabel("5", 176, 16, 22, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Label4 = GUICtrlCreateLabel("12", 212, 16, 38, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Label5 = GUICtrlCreateLabel("9", 269, 16, 22, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

        Case $Label3
            MsgBox(0,"Answer", "Wrong")
        Case $Label4
            MsgBox(0,"Answer", "Correct")
        Case $Label5
            MsgBox(0,"Answer", "Wrong")
    EndSwitch
WEnd

What happened to the web and mentioned screenshots?

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

Is this what you mean ?

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

$Form1 = GUICreate("Form1", 376, 85, 193, 125)
$Label1 = GUICtrlCreateLabel("4 + 8", 32, 16, 93, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Label2 = GUICtrlCreateLabel("=", 136, 16, 23, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Label3 = GUICtrlCreateLabel("5", 176, 16, 22, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Label4 = GUICtrlCreateLabel("12", 212, 16, 38, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Label5 = GUICtrlCreateLabel("9", 269, 16, 22, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

        Case $Label3
            MsgBox(0,"Answer", "Wrong")
        Case $Label4
            MsgBox(0,"Answer", "Correct")
        Case $Label5
            MsgBox(0,"Answer", "Wrong")
    EndSwitch
WEnd

The img that i posted its just a ScreenShot about website that you have to click the correct answer to continue, and each X min new operation appear and i need the script continue resolving it.

thanks!

Share this post


Link to post
Share on other sites

Up , who know how to do? :D

thanks

Share this post


Link to post
Share on other sites

A friend of mine had taken up a project (which was patented later on) on this kind of a problem. He used MATLAB's Image processing tools to identify the character based on its shape and size. Apart from that, I have no friggin' idea how u can do this. And to tell you the truth, it took him an year to finally accomplish his character recognition software. (So it's no easy task, if you ask me)


[font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Hello Again! i did this code whit the "script ImageSearch" i explain a bit what i trying to do..

the $result1 = _ImageSearch("1.bmp",396,$425,$422,455, $result2 = _ImageSearch("2.bmp",396,$425,$422,455), Etc are the First number of the operation

the $result11 = _ImageSearch("1.bmp",448,$435,$466,450), $result22 = _ImageSearch("2.bmp",448,$435,$466,450), Etc are the second number of the operation. the numbers :396,$425,$422,455 are the cords of where are the first number( i think i got here something bad)

and 448,$435,$466,450 are the cords of second number (here i got error too)

and down in the Ifs are all possibilities that can do 1+1 1+2 1+3.....8+8 8+9 9+9.

the problem its that when i run this script they only check one number, if the fisrt number its in operation he just take the first option and click it: Example:

if the operation is 2+1 = 2 8 3 he press the 2 because 1+1=2 and its first in code.

what can i do to solve it?

Thhankssss!!

#include <ImageSearch.au3>


$x1=0
$y1=0
$435=435
$425=425
$422=422
$466=466

$result1 = _ImageSearch("1.bmp",396,$425,$422,455)
$result11 = _ImageSearch("1.bmp",448,$435,$466,450) 
$result2 = _ImageSearch("2.bmp",396,$425,$422,455)
$result22 = _ImageSearch("2.bmp",448,$435,$466,450) 
$result3 = _ImageSearch("3.bmp",396,$425,$422,455)
$result33 = _ImageSearch("3.bmp",448,$435,$466,450)  
$result4 = _ImageSearch("4.bmp",396,$425,$422,455)
$result44 = _ImageSearch("4.bmp",448,$435,$466,450) 
$result5 = _ImageSearch("5.bmp",396,$425,$422,455) 
$result55 = _ImageSearch("5.bmp",448,$435,$466,450)  
$result6 = _ImageSearch("6.bmp",396,$425,$422,455) 
$result66 = _ImageSearch("6.bmp",448,$435,$466,450) 
$result7 = _ImageSearch("7.bmp",396,$425,$422,455)
$result77 = _ImageSearch("7.bmp",448,$435,$466,450) 
$result8 = _ImageSearch("8.bmp",396,$425,$422,455)
$result88 = _ImageSearch("8.bmp",448,$435,$466,450) 
$result9 = _ImageSearch("9.bmp",396,$425,$422,455)  
$result99 = _ImageSearch("9.bmp",448,$435,$466,450) 



if $result1=1 and $result11=1 Then
    _ImageSearch("dos.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result11=1 and $result1=1 Then
    _ImageSearch("dos.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result1=1 and $result22=1 Then
    _ImageSearch("tres.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result11=1 and $result2=1 Then
    _ImageSearch("tres.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result1=1 and $result33=1 Then
    _ImageSearch("cuatro.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result11=1 and $result3=1 Then
    _ImageSearch("cuatro.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result1=1 and $result44=1 Then
    _ImageSearch("cinco.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result11=1 and $result4=1 Then
    _ImageSearch("cinco.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result1=1 and $result55=1 Then
    _ImageSearch("seis.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result11=1 and $result5=1 Then
    _ImageSearch("seis.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result1=1 and $result66=1 Then
    _ImageSearch("siete.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result11=1 and $result6=1 Then
    _ImageSearch("siete.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result1=1 and $result77=1 Then
    _ImageSearch("ocho.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result11=1 and $result7=1 Then
    _ImageSearch("ocho.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result1=1 and $result88=1 Then
    _ImageSearch("nueve.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result11=1 and $result8=1 Then
    _ImageSearch("nueve.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result1=1 and $result99=1 Then
    _ImageSearch("diez.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result11=1 and $result9=1 Then
    _ImageSearch("diez.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result2=1 and $result22=1 Then
    _ImageSearch("cuatro.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result22=1 and $result2=1 Then
    _ImageSearch("cuatro.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result2=1 and $result33=1 Then
    _ImageSearch("cinco.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result22=1 and $result3=1 Then
    _ImageSearch("cinco.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result2=1 and $result44=1 Then
    _ImageSearch("seis.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result22=1 and $result4=1 Then
    _ImageSearch("seis.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result2=1 and $result55=1 Then
    _ImageSearch("siete.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result22=1 and $result5=1 Then
    _ImageSearch("siete.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result2=1 and $result66=1 Then
    _ImageSearch("ocho.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result22=1 and $result6=1 Then
    _ImageSearch("ocho.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result2=1 and $result77=1 Then
    _ImageSearch("nueve.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result22=1 and $result7=1 Then
    _ImageSearch("nueve.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result2=1 and $result88=1 Then
    _ImageSearch("diez.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result22=1 and $result8=1 Then
    _ImageSearch("diez.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result2=1 and $result99=1 Then
    _ImageSearch("once.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result22=1 and $result9=1 Then
    _ImageSearch("once.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result3=1 and $result33=1 Then
    _ImageSearch("seis.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result33=1 and $result3=1 Then
    _ImageSearch("seis.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result3=1 and $result44=1 Then
    _ImageSearch("siete.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result33=1 and $result4=1 Then
    _ImageSearch("siete.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result3=1 and $result55=1 Then
    _ImageSearch("ocho.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result33=1 and $result5=1 Then
    _ImageSearch("ocho.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result3=1 and $result66=1 Then
    _ImageSearch("nueve.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result33=1 and $result6=1 Then
    _ImageSearch("nueve.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result3=1 and $result77=1 Then
    _ImageSearch("diez.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result33=1 and $result7=1 Then
    _ImageSearch("diez.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result3=1 and $result88=1 Then
    _ImageSearch("once.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result33=1 and $result8=1 Then
    _ImageSearch("once.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result3=1 and $result99=1 Then
    _ImageSearch("doce.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result33=1 and $result9=1 Then
    _ImageSearch("doce.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result4=1 and $result44=1 Then
    _ImageSearch("ocho.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result44=1 and $result4=1 Then
    _ImageSearch("ocho.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result4=1 and $result55=1 Then
    _ImageSearch("nueve.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result44=1 and $result5=1 Then
    _ImageSearch("nueve.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result4=1 and $result66=1 Then
    _ImageSearch("diez.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result44=1 and $result6=1 Then
    _ImageSearch("diez.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result4=1 and $result77=1 Then
    _ImageSearch("once.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result44=1 and $result7=1 Then
    _ImageSearch("once.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result4=1 and $result88=1 Then
    _ImageSearch("doce.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result44=1 and $result8=1 Then
    _ImageSearch("doce.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result4=1 and $result99=1 Then
    _ImageSearch("trece.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result44=1 and $result9=1 Then
    _ImageSearch("trece.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result5=1 and $result55=1 Then
    _ImageSearch("diez.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result55=1 and $result5=1 Then
    _ImageSearch("diez.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result5=1 and $result66=1 Then
    _ImageSearch("once.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result55=1 and $result6=1 Then
    _ImageSearch("once.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result5=1 and $result77=1 Then
    _ImageSearch("doce.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result55=1 and $result7=1 Then
    _ImageSearch("doce.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result5=1 and $result88=1 Then
    _ImageSearch("trece.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result55=1 and $result8=1 Then
    _ImageSearch("trece.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result5=1 and $result99=1 Then
    _ImageSearch("catorce.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result55=1 and $result9=1 Then
    _ImageSearch("catorce.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result6=1 and $result66=1 Then
    _ImageSearch("doce.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result66=1 and $result6=1 Then
    _ImageSearch("doce.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result6=1 and $result77=1 Then
    _ImageSearch("trece.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result66=1 and $result7=1 Then
    _ImageSearch("trece.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result6=1 and $result88=1 Then
    _ImageSearch("catorce.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result66=1 and $result8=1 Then
    _ImageSearch("catorce.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result6=1 and $result99=1 Then
    _ImageSearch("quince.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result66=1 and $result9=1 Then
    _ImageSearch("quince.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result7=1 and $result77=1 Then
    _ImageSearch("catorce.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result77=1 and $result7=1 Then
    _ImageSearch("catorce.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result7=1 and $result88=1 Then
    _ImageSearch("quince.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result77=1 and $result8=1 Then
    _ImageSearch("quince.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result7=1 and $result99=1 Then
    _ImageSearch("diezyseis.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result77=1 and $result9=1 Then
    _ImageSearch("diezyseis.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result8=1 and $result88=1 Then
    _ImageSearch("diezyseis.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result88=1 and $result8=1 Then
    _ImageSearch("diezyseis.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result8=1 and $result99=1 Then
    _ImageSearch("diezysiete.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result88=1 and $result9=1 Then
    _ImageSearch("diezysiete.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result9=1 and $result99=1 Then
    _ImageSearch("diezyocho.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf

if $result99=1 and $result9=1 Then
    _ImageSearch("diezyocho.bmp",1,$x1,$y1,0)
    Mousemove($x1,$y1,3)
    Sleep(500)
    Mouseclick("left")
EndIf]
Edited by ziknos

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