Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 04/03/2016 in all areas

  1. The Help file text of the For statement does mention it, but of course I didn't read up on it, I just tried and watched it fail horrendously. And not having explicitly declared the var local in the func, I assumed it would remain Global there (NOT). I'm just glad I don't work for NASA...
    2 points
  2. You could maybe do it like this: Global $aStructures = [ _ [["params"], [3], ["parameter", "value", "comments"], [110, 150, 450]] , _ [["notes"], [1], ["note"], [500]] , _ [["sizes"], [8], ["name", "width", "height", "blockwidth", "blockheight", "hgridsize", "vgridsize", "comments"], [10, 10, 10, 10, 10, 10, 10, 10]] , _ [["templates"], [2], ["name", "comments"], [10, 10]] , _ [["elements"], [10], ["template", "name", "nature", "frontback", "left", "top", "width", "height", "font", "size"], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]] , _ [["schemes"], [4], ["name", "frontbg", "backbg", "comments"], [10, 10, 10, 10]] , _ [["elementcolours"], [7], ["scheme", "element", "fg", "bg", "bg2", "gradtype", "gradval"], [10, 10, 10, 10, 10, 10, 10]] , _ [["colours"], [7], ["name", "r", "g", "b", "rgb", "hex", "sample"], [10, 10, 10, 10, 10, 10, 10]] , _ [["sheets"], [2], ["name", "comments"], [10, 10]] , _ [["items"], [10], ["sheet", "size", "template", "scheme", "qty", "f1", "f2", "f3", "f4", "f5"], [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]] _ ] For $Row = 0 To UBound($aStructures) - 1 ConsoleWrite($aStructures[$Row][0][0] & @CRLF) For $i = 0 To $aStructures[$Row][1][0] - 1 ConsoleWrite(@TAB & $aStructures[$Row][2][$i]) ConsoleWrite(" = " & $aStructures[$Row][3][$i] & @CRLF) Next ConsoleWrite(@CRLF) Next
    1 point
  3. Take a look here: https://www.autoitscript.com/wiki/Best_coding_practices#Scopes_of_Variables
    1 point
  4. jchd

    SQLite not working at all

    The dll and the AutoIt script (compiled or not) must use the same format: either both x86 or both x64. Use _SQLite_Startup($path & "\sqlite3.dll") in both cases but the 32-bit dll must be named sqlite3.dll and the 64-bit dll must be named sqlite3_x64.dll, both in the path used (defaulting to script folder).
    1 point
  5. Only when the Full SciTE4Autoit3 is installed! Jos
    1 point
  6. ntprohd

    AutoIt3ExecuteScript

    thank you, working well right now
    1 point
×
×
  • Create New...