Search the Community
Showing results for tags 'Is this intended?'.
-
I know I can only have one splashtext. Each one overides the previous. I don't know how I've never come accross this before but arraydisplay seems to have the same effect. when arraydisplay is used the splashtext is killed. Is this the indended behaviour? Can I change this behaviour? I have a script that is checking for certain things on our web site. It takes a awhile to run and I use splashtext and controlsettext to dislplay where it is in the process. Ocationally I may run into an unkown error and need to display an array for troubleshooting. But I want the progress display to remain and still be updated. I can work arround this by calling it again when this happens. I'm just wondering if this is the intended behaviour as there is no mention in the help file about other functions killing the display. Here is a test script to show what I mean. #include <Array.au3> ; ensure this copy is the running one. $g_szVersion = @ScriptName & ' Script' If WinExists($g_szVersion) Then WinClose($g_szVersion) AutoItWinSetTitle($g_szVersion) SplashTextOn('Hi','there',Default,Default,0,0,16) sleep(1000) ControlSetText('Hi','','Static1','you') sleep(1000) Dim $at[4] = [3,4,3,5] MsgBox(0, @ScriptName, 'Line ' & @ScriptLineNumber & @CRLF & '--- before arraydisplay.. spash text still there. ---') MsgBox(0, @ScriptName, 'Line ' & @ScriptLineNumber & @CRLF & '--- still there. Pressing ok on msgbox has no effect. ---') _ArrayDisplay($at ,'Line ' & @ScriptLineNumber & ' --- ' & '') MsgBox(0, @ScriptName, 'Line ' & @ScriptLineNumber & @CRLF & '--- what happened to my splash text. ---')