Custom Query (3931 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (412 - 414 of 3931)

Ticket Resolution Summary Owner Reporter
#2892 Fixed GUICtrlSetData on dummy control - AutoIt bug or Document Incorrect? Jon anonymous
Description

In GUICtrlSetData: It says that the function can set data for a dummy control. In GUICtrlRead: It says that you can read the data stored in a dummy control, which is set either by GUICtrlSetData or GUICtrlSendToDummy.

A quick test point out that GUICtrlRead can only read data which is set by GUICtrlSendToDummy.

GUICreate(@AutoItVersion)
GUICtrlCreateDummy()
GUICtrlSetData(-1, 100, 101)
ConsoleWrite(@CRLF & GUICtrlRead(-1))
GUICtrlSendToDummy(-1, "Wow! It can store a string")
ConsoleWrite(@CRLF & GUICtrlRead(-1))

I don't know it is autoit bug or documentation bug, but this is absolutely a bug. But I think it may be easy to fix. Hope it's fixed ASAP.

#2899 Fixed WinGetHandle("LAST") : document unclear and @error bug Jon anonymous
Description

The documentation state that

WinGetHandle("[LAST]")

should return "Last window used in a previous AutoIt command" (in "Window Titles and Text" section), and (in "WinGetHandle" section) "sets the @error flag to non-zero if the window is not found."

GUICreate("Test")
GUISetBkColor(0x0)
GUISetState()
;Local $hWin = WinGetHandle("[ACTIVE]")
;WinMove($hWin, "", 0, 0)

Local $hWin1 = WinGetHandle("[LAST]")
ConsoleWrite($hWin1 & ' - ' & @error  & ' - '& VarGetType($hWin1))
Sleep(2000)

First, the documentation do not say that it's only return the window which is processed with only Win...() function but not GUI...() function. This can make people misunderstood. Second, when no previous window is found, it NOT set @error at all. In the example above, it return a pointer with value 0, and @error also set to 0.

#2901 Fixed Text file as a binary Jon anonymous
Description

Example

#include 'FileConstants.au3'

$h = FileOpen('test.txt', $FO_OVERWRITE)
FileWrite($h, 'abcdef')
FileClose($h)

test(0)
test($FO_BINARY)
test($FO_UTF16_LE)
test($FO_UTF16_BE)
test($FO_UTF8)
test($FO_UTF8_NOBOM)
test($FO_UTF8_FULL)

Func test($FO)
  $h = FileOpen('test.txt', $FO_READ + $FO)
  $data = FileRead($h)
  FileClose($h)
  ConsoleWrite($data & " : " & IsBinary($data) & @CRLF )
EndFunc

3.3.12.0 output

abcdef : 0
0x616263646566 : 1
??? : 0
??? : 0
abcdef : 0
abcdef : 0
abcdef : 0

3.3.13.19 beta output

abcdef : 0
0x616263646566 : 1
0x63646566 : 1
0x63646566 : 1
0x646566 : 1
0x616263646566 : 1
abcdef : 0

Why all $FO_UTF* modes (except $FO_UTF8_FULL) return binary data?


If change string

FileWrite($h, 'abcdef')

to

FileWrite($h, ' ')

then "Error allocating memory" message will be shown for

test($FO_UTF16_LE)
test($FO_UTF16_BE)
test($FO_UTF8)
Batch Modify
Note: See TracBatchModify for help on using batch modify.
Note: See TracQuery for help on using queries.