Jump to content

jmor

Members
  • Posts

    5
  • Joined

  • Last visited

jmor's Achievements

Seeker

Seeker (1/7)

1

Reputation

  1. Many thanks for this excellent and prompt clarification. I am still discovering Autoit and hadn't found the Int() conversion (I had found Number() but that was'nt the solution). This response solves my problem😊
  2. For some reason, I can't convert to Hex a Decimal color that has been calculated. For example, this works: Local $iColor = 3310546 ConsoleWrite("$iColor (dec): " & $iColor & ", $iColor (hex): " & Hex($iColor, 6) & @CRLF) giving the expected output: $iColor (dec): 3310546, $iColor (hex): 3283D2 But if I want to take an average of several colors, I have a problem. For example this doesn't work: $iColor = (3310546 + 3310546) / 2 ConsoleWrite("$iColor (dec): " & $iColor & ", $iColor (hex): " & Hex($iColor, 6) & @CRLF) giving the wrong output: $iColor (dec): 3310546, $iColor (hex): 000000 I observe this behavior after any processing of a decimal color. Is this a bug?
  3. @kylomas, I know this is getting old, but I like your scheduler script. In case you read this, do you have a working version of it? I think there might be some issues, maybe typos, with the posted version. Many thanks.
  4. Perfect! I wasted too much time on this. Both of you are bright. Many thanks for the quick solutions.
  5. If I create a 2D array with: Local $b[2][3] = [[1, 2, 3], [4, 5, 6]] No problem But it would simplify my work a lot if I could create a 2D array by specifying row subarrays: Local $a0[3] = [1, 2, 3] Local $a1[3] = [4, 5, 6] Local $b[2][3] = [$a0, $a1] Apparently, this doesn't work, I get the following error: : ==> Missing subscript dimensions in "Dim" statement.: Local $b[2][3] = [$a0, $a1] Local $b[2][3] = [^ ERROR Basically, I would like to use subarrays (arrays for the rows) to construct the 2D array, and then, be able to normally retrieve the individual elements with, for example: consoleWrite('$b01: ' & $b[0][1] I am sure there is a work around, or there is something I overlooked. Thanks for the help.
×
×
  • Create New...