Sign in to follow this  
Followers 0
ob1kenob

SplashTextOn and opt=32

2 posts in this topic

After turning a hair or two gray, I discovered that whenever I call SplashTextOn with opt containing 32, it does not support multiple lines via ControlSetText calls.

Adding this option to the help's example demonstrates this:

;; SMOOTH
$message = ""
SplashTextOn("TitleFoo", $message, -1, -1, -1, -1, 36, "")
For $x = 1 to 20
    $message = $message & $x & @LF
    ControlSetText("TitleFoo", "", "Static1", $message)
    sleep(100)
Next

Help alludes to this but doesn't exactly spell it out:

If the text is center and multiline, the ControlSetText will not override the number of lines created by the SplashTextOn.

For my particular application, I intended to fill the screen up with a message to call the help desk ASAP. I wanted to include a timer that counted down on a single line, very similar to the example, but I preferred the vertically centered option to increase the likelihood that it would be read. Updating it with repeated SplashTextOn calls will probably annoy people enough that they won't read the message :D

If anybody has any input on how to do this without reinventing the wheel, I would be very grateful for your input.

If this should be posted as a bug report, mods feel free to move.

Share this post


Link to post
Share on other sites



After turning a hair or two gray, I discovered that whenever I call SplashTextOn with opt containing 32, it does not support multiple lines via ControlSetText calls.

Adding this option to the help's example demonstrates this:

;; SMOOTH
 $message = ""
 SplashTextOn("TitleFoo", $message, -1, -1, -1, -1, 36, "")
 For $x = 1 to 20
     $message = $message & $x & @LF
     ControlSetText("TitleFoo", "", "Static1", $message)
     sleep(100)
 Next

Help alludes to this but doesn't exactly spell it out:

For my particular application, I intended to fill the screen up with a message to call the help desk ASAP. I wanted to include a timer that counted down on a single line, very similar to the example, but I preferred the vertically centered option to increase the likelihood that it would be read. Updating it with repeated SplashTextOn calls will probably annoy people enough that they won't read the message :D

If anybody has any input on how to do this without reinventing the wheel, I would be very grateful for your input.

If this should be posted as a bug report, mods feel free to move.

Maybe you could do something like this

$message = ""
SplashTextOn("TitleFoo", $message, -1, -1, -1, -1);, 36);, "")
$pre = ""

for $n = 0 to 9
    $pre &= @LF
Next

For $x = 1 to 20
    $message = $message & $x & @LF
    ControlSetText("TitleFoo", "", "Static1", $pre & $message)
    if BitAnd($x,1) then $pre = StringTrimLeft($pre,1)
    sleep(200)
Next

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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0