Jump to content

ConsoleWrite bug


jchd
 Share

Recommended Posts

There's a bug in ConsoleWrite when the parameter is Binary(string variable or litteral)

Please someone confirm before report.

Global $s = "Bug"

ConsoleWrite(Binary("Bug")); here Binary() is completely ignored!
ConsoleWrite(@LF)

ConsoleWrite(Binary($s)); again Binary() is completely ignored!
ConsoleWrite(@LF)

ConsoleWrite(Binary("Correct") & @LF); a concatenation is a workaround

ConsoleWrite(Binary("Correct") & ""); any concatenation is a workaround
Edited by jchd

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

  • Developers

Doesn't look like its the Binary Func but something in ConsoleWrite:

Global $s = "Bug"
Global $bs = Binary("Bug")
ConsoleWrite($bs)
ConsoleWrite(@LF)
ConsoleWrite( $bs & @LF)
Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Doesn't look like its the Binary Func but something in ConsoleWrite:

Global $s = "Bug"
  Global $bs = Binary("Bug")
  ConsoleWrite($bs)
  ConsoleWrite(@LF)
  ConsoleWrite( $bs & @LF)
Yes it looks like ConsoleWrite doesn't convert binary variables to a string

Global $s = "Bug"
 Global $bs = Binary("Bug")
 ConsoleWrite(String($bs));works
Edited by martin
Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Maybe it is because of the translation

ConsoleWrite(0xF & @CRLF) ; = 15

Mega

Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...