Modify

Opened 15 years ago

Closed 15 years ago

#1844 closed Bug (Fixed)

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

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

Description

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)
Sleep(1000)
SplashOff()
Sleep(500)
SplashTextOn("", $splashtext, -1, -1, -1, -1, 32 + 1)
Sleep(1000)
SplashOff()

Attachments (0)

Change History (3)

comment:1 by mvg, 15 years ago

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 by J-Paul Mesnage, 15 years ago

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

comment:3 by Jon, 15 years ago

Milestone: 3.3.7.2
Owner: set to Jon
Resolution: Fixed
Status: newclosed

Fixed by revision [5995] in version: 3.3.7.2

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.