Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (40 - 42 of 3826)

Ticket Resolution Summary Owner Reporter
#40 Completed Pixel functions should accept HWND Jpm Valik
Description

The following pixel functions should accept an HWND: PixelCheckSum PixelSearch PixelGetColor

Adjust PixelCoordMode options: 0 - Removed, no automatic "active window" stuff. 1 - Default, unchanged. Absolute coordinates for the screen if no HWND supplied. Absolute coordinates relative to the window if an HWND is supplied. 2 - Only valid with an HWND, relative to the client area of the window.

This is a script breaking change for those using the "active window" functionality.

#41 Rejected Cleanup/Rename internal and User Defined Functions. Xenobiologist
Description

Hi,

I read about some changes which may break old scripts. If you are going to make such changes think about ...

Delete _ArrayCreate func (it is not necessary anymore) Rename WinMove --> WinSetPos It is kind of strange that there is _SoundPlay an SoundPlay. and so on.

So long,

Mega

#42 Fixed _FileWriteFromArray outputs too many CRLF (File.au3) Gary mlowery <matin@…>
Description

Lines output from the _FileWriteFromArray function in the standard File.au3 include are prefixed by a @CRLF, resulting in an initial blank line in the file. Repeated use of this function and its complement _FileReadToArray on the same file can result in file bloating.

A suggested fix is to change the current file writing loop:

 	Local $ErrorSav = 0
 	For $x = $i_Base To $i_UBound
 		If FileWrite($hFile, @CRLF & $a_Array[$x]) = 0 Then
			$ErrorSav = 3
			ExitLoop
		EndIf
	Next

With something such as below that outputs the CRLF after the data, and does not write a final CRLF (code could undoubtedly be improved):

	Local $ErrorSav = 0
 	For $x = $i_Base To $i_UBound -1
		If FileWriteLine($hFile, $a_Array[$x]) = 0 Then
			$ErrorSav = 3
			ExitLoop
		EndIf
	Next
	If FileWrite($hFile, $a_Array[$i_UBound]) = 0 Then $ErrorSav = 3

As an additional suggestion, modify the function call to take the array by reference:

_FileWriteFromArray($File, ByRef $a_Array, $i_Base = 0, $i_UBound = 0)

Thanks!

Note: See TracQuery for help on using queries.