Modify ↓
Opened 14 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: | 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 Changed 14 years ago by mvg
comment:2 Changed 14 years ago by Jpm
whoah,
that really a bug ... if it really modify the input string.
comment:3 Changed 13 years ago by Jon
- Milestone set to 3.3.7.2
- Owner set to Jon
- Resolution set to Fixed
- Status changed from new to closed
Fixed by revision [5995] in version: 3.3.7.2
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.
Note: See
TracTickets for help on using
tickets.
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]