ob1kenob Posted June 3, 2009 Share Posted June 3, 2009 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 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. Link to comment Share on other sites More sharing options...
martin Posted June 3, 2009 Share Posted June 3, 2009 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 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now