Jump to content

Memories

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by Memories

  1. Hi. Here is an example - 2 arrays, 1st is array of numbers, it sorts correctly, 2nd is array of same numbers, but declared as strings. It sorts uncorrectly. What should I do with $array_str to sort it correctly? I mean - like numbers. I tried to Number(my array) successfully, but it doesn't help. #include <array.au3> Dim $array_num[8] = [93999998.98,94000000.01,95000000.0,95000000.01,99999998.99,100000000.0,107100002.0,117889900.0] Dim $array_str[8] = ["93999998.98","94000000.01","95000000.0","95000000.01","99999998.99","100000000.0","107100002.0","17889900.0"] _ArraySort ($array_num,0,0,0, 0) _ArraySort ($array_str,0,0,0, 0) _ArrayDisplay($array_num,"Correct sort - Numeric") _ArrayDisplay($array_str,"Not correct sort - Strings") For $i=0 to 7 If IsNumber($array_num[$i])=1 then $array_num[$i]=Number($array_num[$i]) EndIf Next _ArraySort ($array_str,0,0,0, 0) _ArrayDisplay($array_str,"Still not correct - String=>Number")
  2. Hi, nice project! And my first question on this forum. There are some identical images on the screen. _ImageSearchArea returns the coordinates of 1st image it recognizes. Is it possible to get array with all the coordinates of identical images (without dll recompiling if possible ^) )?
×
×
  • Create New...