Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/10/2022 in all areas

  1. What is your AutoIt version? Before version 3.3.14.3 (3.3.14.2?) _SQLite_Startup() used to download sqlite dll from AutoIt's servers: https://www.autoitscript.com/autoit3/docs/history.htm It could be that you rely on _SQLite_Startup() to download the dll for you and AutoIt servers throttle the download speed, causing the long download time you are observing. You can avoid having to download the dll if you bundle it alongside your script (or put it in some specific system directories) -- see the documentation for _SQLite_Startup() for more information.
    2 points
  2. Check out the small example I added to my post above. You can separate e.g. "10,100" with StringSplit, and then use the two elements of the resulting array.
    1 point
  3. (simplified description) AutoIt works internally with the data type Variant. For example, if you pass a string "500" to the Sleep function, AutoIt tries to get the numeric part of it, starting with the first character. Try for demonstration purposes : #include <Timers.au3> Local $hStarttime = _Timer_Init() Sleep("500,2500") ; -> 500 ConsoleWrite("Time elapsed (ms) = " & _Timer_Diff($hStarttime) & @CRLF) $hStarttime = _Timer_Init() Sleep("2500,500") ; -> 2500 ConsoleWrite("Time elapsed (ms) = " & _Timer_Diff($hStarttime) & @CRLF) $hStarttime = _Timer_Init() Sleep("1500A0") ; -> 1500 ConsoleWrite("Time elapsed (ms) = " & _Timer_Diff($hStarttime) & @CRLF) PixelGetColor expects at least 2 parameters (x-coordinate , y-coordinate). If you pass a string like "10, 100", then only the value 10 is evaluated as a parameter. @ManualIT : Additional Info : #include <MsgBoxConstants.au3> Local $sInput = "10, 100" Local $aPosition = StringSplit($sInput, ",", 2) ; 2=$STR_NOCOUNT Local $iColor = PixelGetColor($aPosition[0], $aPosition[1]) MsgBox($MB_SYSTEMMODAL,"","Hex Color: " & Hex($iColor, 6)) However, I would not make this "AutoIt feature" a habit, instead I would pass the data types that the respective function expects .
    1 point
×
×
  • Create New...