ikodan Posted October 12, 2015 Report Share Posted October 12, 2015 Hello, I wan't to detect some elements in a grid of a zone, so I use the pixel color detection, for that I use arrays to generate coordinates where to detect. It works well but I do dynamics macros, then the coordinates are obtained by dividing the width and height of the concerned window. It needs a high precision, because it's a grid so I multiply the first number to obtain all the other cordinates. But I saw that this function can't use decimals : <VARIABLE MODIFY INTEGER Option="\x03" Destination="%cell_decalage%" Value1="%map_x%" Value2="29"/> "29.54" for exemple... Oh wait, I think this is this function that can't use it : <MOUSE MOVE Option="\x03" X="%cells_x_type1[%x_array%]%" Y="%cells_y_type1[%y_array%]%" _PROMPT="0x000A"/> Because the mouse move on "29" if I put "29.54" The two variables underlined are decimals numbers, like 29.54. I use this function above to debug, but in the end, I will use this variable ("29.54") in a : <GET PIXEL COLOR Option="\x01" Rel_To_Screen="TRUE" X="%cells_x_type1[%x_array%]%" Y="%cells_x_type1[%x_array%]%" Destination="%color_type1[%x_array%]%"/> Someone knows how to get this precision ? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.