Creates a customizable text popup window.
SplashTextOn ( "title", "text" [, w = 500 [, h = 400 [, x pos [, y pos [, opt = 0 [, "fontname" [, fontsz = 12 [, fontwt]]]]]]]] )
To skip an optional parameter, leaving its default value intact, use:
"" for string parameters
-1 for numeric parameters
Only one SplashImage/Text window is allowed at one time; so if you wish to cycle through multiple images/text, simply call SplashImageOn()/SplashTextOn() again with the new information.
Even better is to use ControlSetText() to update text without flicker...
If the text is center and multiline, the ControlSetText() will not override the number of lines created by the SplashTextOn().
Splash with opt=1 cannot be moved and cannot be activated by click.
Standard font names include:
Arial, Comic Sans MS, Courier New, Lucida Console, Microsoft Sans Serif, System, Tahoma, Times New Roman, and WingDings
See the Appendix for a complete list of Windows fonts and the Windows versions under which they are supported.
Use @LF to display several lines.
ControlSetText, MsgBox, SplashImageOn, SplashOff, ToolTip
#include <AutoItConstants.au3>
SplashTextOn ("Title","Message goes here.",- 1,- 1,- 1,- 1,$DLG_TEXTLEFT,"",24)
Sleep (3000)
SplashOff ()
; ; FLICKER
Local $sMessage= ""
SplashTextOn ("TitleFoo",$sMessage,- 1,- 1,- 1,- 1,$DLG_TEXTLEFT,"")
For $i= 1To 20
$sMessage= $sMessage&$i&@CRLF
SplashTextOn ("TitleFoo",$sMessage,- 1,- 1,- 1,- 1,$DLG_TEXTLEFT,"")
Sleep (100)
Next
; ; SMOOTH
$sMessage= ""
SplashTextOn ("TitleFoo",$sMessage,- 1,- 1,- 1,- 1,$DLG_TEXTLEFT,"")
For $i= 1To 20
$sMessage= $sMessage&$i&@CRLF
ControlSetText ("TitleFoo","","Static1",$sMessage)
Sleep (100)
Next