{"id":3005,"date":"2020-02-17T13:53:54","date_gmt":"2020-02-17T13:53:54","guid":{"rendered":"https:\/\/www.mjtnet.com\/blog\/?p=3005"},"modified":"2020-02-17T13:53:54","modified_gmt":"2020-02-17T13:53:54","slug":"waitscreenimage-now-returns-x-and-y-image-position","status":"publish","type":"post","link":"https:\/\/www.mjtnet.com\/blog\/2020\/02\/17\/waitscreenimage-now-returns-x-and-y-image-position\/","title":{"rendered":"WaitScreenImage now returns X and Y image position."},"content":{"rendered":"<p>Did you know that as of Version 14.4.05, WaitScreenImage can also return x and y mouse coordinates of the found image?<\/p>\n<p>The optional arguments x and y can be used to specify return variables which will store the position of the image found. This is useful as it means as well as waiting for a screen image you can interact with it without using a subsequent FindImagePos call.<\/p>\n<p>Here&#8217;s a usage example :<\/p>\n<pre class=\"brush:macroscript\">\/\/with position returned\r\nWaitScreenImage&gt;%SCRIPT_DIR%\\save.bmp,0.7,CCOEFF,XArr,YArr\r\nMouseMove&gt;XArr_0,YArr_0\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Did you know that as of Version 14.4.05, WaitScreenImage can also return x and y mouse coordinates of the found image? The optional arguments x and y can be used to specify return variables which will store the position of the image found. This is useful as it means as well as waiting for a [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/3005"}],"collection":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/comments?post=3005"}],"version-history":[{"count":1,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/3005\/revisions"}],"predecessor-version":[{"id":3007,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/posts\/3005\/revisions\/3007"}],"wp:attachment":[{"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/media?parent=3005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/categories?post=3005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mjtnet.com\/blog\/wp-json\/wp\/v2\/tags?post=3005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}