Custom Query


Show under each result:

Results (130 - 132 of 3856)

Ticket Resolution Summary Owner Reporter
#229 Rejected @error and @extended not returning appropriate values for BinaryToString if input binary string contains 00 steve8tch

I have done some testing. BinaryToString will return the a value up to when it sees the first "00" in the Binary String. The problem is @error still shows 0 - so the return value may or may not contain any values depending on the position of any "00" entries in the Binary string. We have no way to easily test the output from BinaryToString for any "00" values in input Binary String

;binary to string test
;Binary message consisting of a "length component" followed by the string part
$err = 99
$ext = 99
$bin_msg = "0x0000000548656C6C6F"
;To get hold of sting part of message I do this
$bin_str = "0x" & StringTrimLeft($bin_msg,10)
$rtn = BinaryToString($bin_str)
$err = @error
$ext = @extended
msgbox(0,"This works OK","$rtn = " & $rtn & @CRLF & "$err = " & $err & @CRLF & "$ext = " & $ext)
;This suggests that BinaryToString function is returning @error and @extended
; but...
$rtn = BinaryToString($bin_msg)
$err = @error
$ext = @extended
;This does not work - no error, no extended and actually causes Msgbox() to work incorrectly
msgbox(0,"Where are the $err and $ext entries ?","$rtn = " & $rtn & @CRLF & "$err = " & $err & @CRLF & "$ext = " & $ext)
#231 Rejected Modifier keys stick herewasplato

I seem to recall that this has been reported before, but I could not locate the report.

The test code is pretty simple on an XP Pro SP2 OS: Send("#l") ; to lock your computer Then manually unlock it and type l on my system, it locks again.

You can see this post for more info and more code to test:

Is this an OS problem or AutoIt?

It also happens with

"C:\Program Files\AutoIt3\SciTe\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "c:\Temp\SciTE-temp.au3" /autoit3dir "C:\Program Files\AutoIt3\beta" /UserParams

+>05:57:05 Starting AutoIt3Wrapper v. Environment(Language:0409 Keyboard:00000409 OS:WIN_XP/Service Pack 2 CPU:X86)

Running AU3Check ( from:C:\Program Files\AutoIt3\beta

+>05:57:06 AU3Check ended.rc:0

Running:(\Program Files\AutoIt3\beta\autoit3.exe "c:\Temp\SciTE-temp.au3"

+>05:57:06 AutoIT3.exe ended.rc:0

Exit code: 0 Time: 1.850

#232 No Bug StdoutRead with peek = true doesn't exits loop gcriaco <gcriaco@…>

Using peek = true the StdoutRead loop never terminates (@error = 0)

See the example below:

#include <Constants.au3>

Local $foo = Run(@ComSpec & " /c dir", @SystemDir, @SW_HIDE, $STDERR_CHILD + $STDOUT_CHILD) Local $line While 1

$line = StdoutRead($foo, True) If @error Then ExitLoop MsgBox(0, "STDOUT read:", $line)


MsgBox(0, "Debug", "Exiting...")

Note: See TracQuery for help on using queries.