<?xml version="1.0" encoding="UTF-8"?>
<scriptfile>
    <settings program="actiona" version="3.10.0" scriptVersion="1.1.0" os="Windows"/>
    <actions>
        <action name="ActionCode" version="1.0.0"/>
    </actions>
    <parameters/>
    <resources/>
    <script pauseBefore="0" pauseAfter="0">
        <action name="ActionCode" color="#ffaa7f">
            <exception id="0" action="0" line=""/>
            <exception id="1" action="0" line=""/>
            <exception id="2" action="1" line=""/>
            <parameter name="code">
                <subParameter name="value" code="1">                                              

 Execution.pause(200) ;  
var screenShot = Image.takeScreenshot();
var screenShot_partie= screenShot.copy(new Rect(75,265,330,335));

var img_a_trouver_ = new Image (&quot;C:/temp/BB/1.jpg&quot;)
                                                
 Search_IMG_ = screenShot_partie.findSubImages( img_a_trouver_,{
confidenceMinimum: 80,
downPyramidCount: 1,
searchExpansion: 15,
maximumMatches: 30
 });


if (Search_IMG_) {
        Console.print(&quot;trouvé&quot;)
        X_clic = Search_IMG_[0].position.x
	Y_clic = Search_IMG_[0].position.y
      
	var pt_clic = new Point( X_clic, Y_clic);

        var souris=new Mouse()
        souris.move(pt_clic);

	souris.click();
}  else{
         Console.print(&quot;pas trouvé&quot;)
         Execution.stop()
     } ;	 </subParameter>
            </parameter>
        </action>
    </script>
</scriptfile>
