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 , 15 years ago
comment:3 by , 15 years ago
| Milestone: | → 3.3.7.2 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed by revision [5995] in version: 3.3.7.2
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]