Opened 13 years ago

Closed 13 years ago

#1844 closed Bug (Fixed)

SplashTextOn crops variable when used with opt 32 and @CRLF / @LF

Reported by: anonymous Owned by: Jon
Milestone: Component: AutoIt
Version: Severity: None
Keywords: Cc:


This short snippet shows the problem.
Notice how line two disappears on the second "flash"

I want to use it to attract user attention in case anybody wonders :)

$splashtext = "Line one" & @LF & "Line two"
SplashTextOn("", $splashtext, -1, -1, -1, -1, 32 + 1)
SplashTextOn("", $splashtext, -1, -1, -1, -1, 32 + 1)

Attachments (0)

Change History (3)

comment:1 Changed 13 years ago by mvg

Someone ByRef'd it? :)

SplashTextOn replaces @LF (and @CR, but thats of topic) control codes for chr(0) one's on the text parameter.
Local test output: (before[1] and after[2] SplashTextOn() use).

[1] $splashtext = "aaa[LF]bbb[LF]ccc[chr(1)]ddd" {St} [0,0]
[2] $splashtext = "aaa[NUL]bbb[NUL]ccc[chr(1)]ddd" {St} [0,0]

comment:2 Changed 13 years ago by Jpm

that really a bug ... if it really modify the input string.

comment:3 Changed 13 years ago by Jon

  • Milestone set to
  • Owner set to Jon
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [5995] in version:

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The owner will remain Jon.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.