Jump to content

macargu

Members
  • Posts

    7
  • Joined

  • Last visited

macargu's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Kylomas and Guinness, Thank you, guys, you have provided me with all the necessary information. What a nice, supporting community, for a wonderful, accesible scripting language. I cannot believe that me, not a programmer, can aspire to learn to do so many things with AutoIt and the incredible resource the AutoIt forums are, supported by their members. Macargu
  2. Thank you, Guinness for your useful help. I have v3.3.6.1. As per your advice, I will proceed to download and install v3.3.8.1 stable and then the the latest beta. Thanks again, macargu
  3. Hi Basel1998, I meant the latest beta release, but unfortunately I do not understand your answer. I asked two opposite questions and you answered with a "yes" and a "no", so, I was not able to clearly associate either of your answers to either of my questions. Could you be a little more specific? Thank you, macargu
  4. Yes. Very nice solution, BrewManNH. Macargu
  5. Hi all, I have a very old version of AutoIt, and would like to install the most recent one. After downloading the newest one, do I install it on top of the older one, or do I need to uninstall the old one first? I went to the downloads page, but I did not find any information in this regard. FWIW, I have an XP Pro SP3 machine. Thank you! Macargu
  6. Thank you, Melba23. I am really glad to see that an experienced coder as yourself used the exact same logic I, a beginner, did, only you did it in a sintactically compact, more efficient and elegant way. What took me 3 rows, you did in one. Very clear, very nice. Macargu
  7. Unless I am not understanding something here, but it would seem to me that the program is just trimming off everything after the second digit to the right of the decimal point. To achieve that, I would do the following: $Var = 174.126 ; Splitting the number into its components, using the decimal point as separator: $SplitVar = StringSplit($Var, ".") ; $SplitVar[1]= 174 ; $SplitVar[2]= 126 ; Trimming the decimal component to two digits: $SplitVar[2] = StringLeft($SplitVar[2], 2) ; $SplitVar[2] = 12 ; Joining both components back together $FinalVar = $SplitVar[1] & "." & $SplitVar[2]) ; $FinalVar = 174.12 I hope I am not saying something really stupid!
×
×
  • Create New...