Custom Query (3926 matches)
Results (157 - 159 of 3926)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #1307 | Rejected | Better and consistent naming of boolean parameters in UDF functions | ||
| Description |
I would like to request that a bit more consistent logic is used in the naming of boolean parameters in UDF function. Particularly optional ones. This request was prompted by when I needed to use _StringBetween in case sensitive mode. From the help file it was not obvious what value I should use for the $v_Case parameter. Looking at string.au3 I found that I could use anything except the keyword Default or -1. I think it might be more intuitive to most people if such optional boolean parameters used True / False values in the help file and were named to express the positive vale of the default option. Examples of suggested changes: _StringBetween($s_String, $s_Start, $s_End [, $v_Case = -1]) To _StringBetween($s_String, $s_Start, $s_End [, $fCaseInsensitive = True]) ; the default for most string functions is case insensitive ArraySort(ByRef $avArray[, $iDescending = 0 [, $iStart = 0 [, $iEnd = 0 [, $iSubItem = 0]]]]) To _ArraySort(ByRef $avArray[, $fSortAssending = True [, $iStart = 0 [, $iEnd = 0 [, $iSubItem = 0]]]]) ;the default for most sorting functions is ascending _DateToMonth($iMonth [, $ishort = 0]) To _DateToMonth($iMonth [, $fLongName = True]) _ArrayTrim(ByRef $avArray, $iTrimNum[, $iDirection = 0[, $iStart = 0[, $iEnd = 0]]]) To _ArrayTrim(ByRef $avArray, $iTrimNum[, $fTrimRight = True[, $iStart = 0[, $iEnd = 0]]]) I think this can be done with only minor changes to the relevant functions and would not break any existing scripts. It would also make it easier to choose the correct value for the displayed call tips in SciTe. |
|||
| #1338 | Fixed | _arrayDisplay() GUI position error | ||
| Description |
The _arrayDisplay() function calculates a very poor GUI location when displaying large arrays. Bug Report Environment AutoIt:3.3.1.6 (Os:WIN_XP/X86/Service Pack 3 Language:0409 Keyboard:00000809 Cpu:X64) When diplaying arrays with long rows and many columns of data, using _arrayDisplay(), the GUI X position is calculated as a large negative value that positions the GUI off the visible screen. To see the displayed array you have to right clisk on the taskbar button and select maximize which fits the GUI to the monitor display #include <array.au3>
#include <string.au3>
Global $g_aTestArray[5][240]
AdlibRegister("_DisplayWindowSize", 1000)
_PopulateArray($g_aTestArray)
_ArrayDisplay($g_aTestArray, "Display Array With Longish Rows")
Exit
Func _PopulateArray(ByRef $aTestArray)
Local $fPopulate = True
;Generate some data for the array
For $i = 0 To 4
For $j = 0 To 239
$fPopulate = Random(0, 1, 1)
If $fPopulate Then
$aTestArray[$i][$j] = _StringRepeat(Chr(Random(48, 90, 1)), Random(10, 40, 1))
EndIf
Next
Next
EndFunc ;==>_PopulateArray
Func _DisplayWindowSize()
Local $aPos = 0
$aPos = WinGetPos("Display Array With Longish Rows")
If Not @error Then
AdlibUnRegister("_DisplayWindowSize")
MsgBox(0, "_ArrayDisplay Window Size", "X = " & $aPos[0] & @CRLF & "Y = " & $aPos[1] & @CRLF & "W = " & $aPos[2] & @CRLF & "H = " & $aPos[3] & @CRLF)
EndIf
EndFunc ;==>_DisplayWindowSize
|
|||
| #1411 | Rejected | FileReadLine enhancement to enable more efficient reading of very large files. | ||
| Description |
I would like to suggest a possible enhancement to the FileReadLine() function to improve the speed of processing very large text file (> 500MB, millions of rows) which are too large for autoIT to load into memory in one chunk using FileRead() or _FileReadToArrary(). What I would like is an extra optional parameter for FileReadLine("filehandle/filename"[,line[,NumLines=1]]) so that it would be possible to read a file for example in 50000 line chunks with each call to FileReadLine() rather than having to call FileReadLine() for every line in the file. Example of how I envisage it would be used: $sFile = "C:\data\very large file.txt" $hFile = FileOpen($sFile, 0) $iStartLine = 1 $iNumLines = 50000 $sData = FileReadLine($hFile, $iStartLine, $iNumLines) While Not @error $aData = StringSplit($sData, @CRLF, 1) ; ... ; Process $aData ; ... $iStartLine += $iNumLines $sData = FileReadLine($hFile, $iStartLine, $iNumLines) Wend FileClose($hFile) |
|||
